79172287

Date: 2024-11-09 07:34:40
Score: 0.5
Natty:
Report link

Including mime.types and clearing cache on docker did the thing.

events{
    worker_connections 1024;
}
http{
    include /etc/nginx/mime.types;
    server {
        listen 80;
        
        root /usr/share/nginx/html;

        location / {
            try_files $uri $uri/ /index.html;  
        }

        location /api/ {
            proxy_pass http://localhost:3000;  
            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;
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rivi