Try to set NEXT_PUBLIC_WEBSITE_URL, does it help?
# developers
v
Try to set NEXT_PUBLIC_WEBSITE_URL, does it help?
g
Hey, it is also set to the same value as WEBAPP_URL, no help
I can authenticate, and when I log in, I have this on the console: he page at 'https://cal.faculty.group/event-types' was loaded over HTTPS, but requested an insecure element '

http://localhost:3000/gm/avatar.png

'
v
No idea.:(( That’s how we configured cal.com for our project, and all issues with links gone.
Copy code
NEXT_PUBLIC_WEBAPP_URL='<http://example.com>'
# Change to '<http://localhost:3001>' if running the website simultaneously
NEXT_PUBLIC_WEBSITE_URL='<https://example.com>'
NEXT_PUBLIC_CONSOLE_URL='<http://console.cal.com>'
NEXT_PUBLIC_EMBED_LIB_URL='<http://example.com/embed/embed.js>'
g
I am running the docker container behind an nginx instance (for https) Could this be an issue?
ok looks like issue is that the static frontend from the docker image is like this, only solution is to build my own docker image
p
@Bailey
g
Hey everyone, I had no luck deploying this in production. I tried to build my own docker image, but it fails in the "husky install" step and hangs there. An image is built but just exits without printing anything to logs.
p
hey @Guilherme Mussi @zomars and @Emrysal will look into this 🙏
e
Hi @Guilherme Mussi The issue you are seeing is due to the NEXTAUTH_URL, what is the value of this env var?
g
Hey for posteriority:
I built an own docker image using the proper .env and now it works. The localhost:3000 is hardcoded in the pre-built docker image at caldso/calendso. I would highlight this in bold in the docs.
e
Thanks @Guilherme Mussi we'll work on getting that un-hardcoded 🙏
c
@zomars @Emrysal I think the NEXTAUTH_URL part is related to this https://calendso.slack.com/archives/C027FQMLE6P/p1664039026846379