The route api/auth/register could not be found. #496
mike-dataduality
started this conversation in
General
Replies: 1 comment 1 reply
-
I'd recommend splitting your backend and frontend into separate domains instead of using
This will make your NGINX config simpler. Your setup would look something like this: VITE_API_URL_CLIENT=https://api.tickets.mihow.net
VITE_API_URL_SERVER=https://api.tickets.mihow.net Here’s a basic (untested) example NGINX config for the backend: server {
listen 443 ssl;
server_name api.tickets.mihow.net;
ssl_certificate /etc/letsencrypt/live/api.tickets.mihow.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/api.tickets.mihow.net/privkey.pem;
location / {
proxy_pass http://hi-events-backend:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to setup a production instance of Hi.events over multiple docker containers, but I just can't get the app to work. I keep getting The route "api/auth/register could not be found." when trying to register a new user, and going to the api link gives me a 404.
I have containers for the frontend, backend, postgres, redis, nginx and certbot-renawal.
backend compose config files:
front end compose file
my config for nginx:
ChatGPT is not that great in resolving this issues, it keeps looping with the same troubleshooting approach
Beta Was this translation helpful? Give feedback.
All reactions