Skip to content

Instantly share code, notes, and snippets.

@Niemi
Last active February 10, 2023 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Niemi/701fa5db68be6df9d9c27e5aa22ab85b to your computer and use it in GitHub Desktop.
Save Niemi/701fa5db68be6df9d9c27e5aa22ab85b to your computer and use it in GitHub Desktop.
upstream nexus3 {
server 127.0.0.1:8081;
keepalive 32;
}
server {
listen 80;
server_name nexus.hwdomain.io;
location / {
proxy_pass http://nexus3/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Proto http;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
client_max_body_size 1024m;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment