Untitled
unknown
nginx
3 years ago
1.3 kB
5
Indexable
user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; events { worker_connections 1024; } http { underscores_in_headers on; #Security server_tokens off; sendfile on; add_header X-XSS-Protection "1; mode=block"; include /etc/nginx/mime.types; # Main Page server { server_name allinnet.online www.allinnet.online; root /var/www/allinnet.online/; index index.html index.htm; resolver 127.0.0.11 valid=10s; resolver_timeout 5s; location ~ \.css { add_header Content-Type text/css; } location ~ \.js { add_header Content-Type application/x-javascript; } location / { try_files $uri $uri/ /index.html; } error_page 500 502 503 504 /50x.html; location /api { proxy_pass_request_headers on; 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; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_pass http://backend:5000; } } }
Editor is loading...