Hello everyone I have been trying to find a solution for many days, but without success. Please help...
d
Hello everyone I have been trying to find a solution for many days, but without success. Please help me fix this error: ( ERROR [ExceptionHandler] Please make sure that the apiDomain and websiteDomain have correct values)
r
hey @denism1104 you can't use these values for api and website domain:
Copy code
API_DOMAIN=https://backend:9000
WEB_DOMAIN=https://frontend:3000
It must be a valid URL (as recognised by the browser)
d
Thank you very much, this is how all containers are launched

https://cdn.discordapp.com/attachments/1097926361638764667/1099333243460915220/image.png

but now the site that used to work under the initial environment variables does not open

https://cdn.discordapp.com/attachments/1097926361638764667/1099334621289775164/image.png

https://cdn.discordapp.com/attachments/1097926361638764667/1099335025926881321/image.png

https://cdn.discordapp.com/attachments/1097926361638764667/1099335339308490873/image.png

r
im not sure how these screenshots can help me. As i said before, you need to use valid urls fro apidomain and websiteDomain
d

https://cdn.discordapp.com/attachments/1097926361638764667/1099337071597985892/image.png

If I send a link to github with my project, can you help me?
r
not unless you are paying for our support.
d
Good. At the moment I'm starting a non-profit project where I want to study Supertokens technology. I'm trying to put into production an almost empty project with Next, Next, Nginx, Postgresql, Docker-compose. I have set environment variables: API_DOMAIN=https://lakhov.com:9000 WEB_DOMAIN=https://plakhov.com:3000 SUPERTOKENS_CONNECTION_URI=http://supertokens:3567
r
right. That seems fine
d
The backend has started working for me, but the frontend does not work, because the fact that nginx does not specify the name of the service from the docker-compose file: location @nodejs { proxy_pass https://frontend:3000 ; ... docker-compose.prod.yml:
frontend: container_name: frontend env_file: - .env ports: - "3000:3000"...
The backend started working for me, but the interface does not work, due to the fact that nginx specifies the name of the service from the docker-compose file: location @nodejs { proxy_pass https://frontend:3000 / ; ... docker-compose.prod.yml:.
Can you recommend some example showing how these technologies interact in production? Or is there an article that describes this?
r
Im not sure what you want. Sorry.
It's best if you stick to asking very specific questions on this server. Otherwise i doubt anyone will help for free 🙂
d
Thanks for the advice!
15 Views