fix: Nginx proxy for backend and relative API_BASE_URL

This commit is contained in:
2026-09-22 16:53:28 +05:30
parent 05358be6c1
commit e029ee15f9
4 changed files with 25 additions and 1 deletions
+11
View File
@@ -2,6 +2,17 @@ server {
listen 80;
server_name localhost;
location /api/ {
proxy_pass http://backend:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /uploads/ {
proxy_pass http://backend:5000;
proxy_set_header Host $host;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
+1 -1
View File
@@ -1,3 +1,3 @@
const API_BASE_URL = process.env.REACT_APP_API_URL || 'https://digifox.studio';
const API_BASE_URL = process.env.REACT_APP_API_URL || '';
export default API_BASE_URL;