server { listen 80; gzip on; gzip_http_version 1.1; gzip_disable "MSIE [1-6]\."; gzip_min_length 256; gzip_vary on; gzip_proxied expired no-cache no-store private auth; gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript; gzip_comp_level 9; client_max_body_size 5M; proxy_read_timeout 200s; index index.html; location / { include /etc/nginx/mime.types; root /usr/share/nginx/html; add_header Cache-Control "public, max-age=1M"; try_files $uri $uri/ /index.html =404; } location /api { proxy_pass https://jucundus-api.saucisse.ninja; 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; add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept, Authorization'; } location /healthcheck { access_log off; add_header 'Content-Type' 'text/plain'; return 200 "Healthy\n"; } }