Set outer ports in .env

This commit is contained in:
cdricms
2025-01-14 14:10:40 +01:00
parent fd834ea84a
commit 8aadc810d1
5 changed files with 26 additions and 17 deletions

19
nginx.conf Normal file
View File

@@ -0,0 +1,19 @@
server {
server_name TO BE SET;
location / {
proxy_pass http://localhost:FRONTEND_PORT; # Set frontend port based on what you have exposed
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;
}
location /api {
proxy_pass http://localhost:BACKEND_PORT; # Set backend port based on what you have exposed
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;
}
}