Skip to content

Instantly share code, notes, and snippets.

@philcryer
Last active January 19, 2018 20:46
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 philcryer/19bc9879a626983eb42159be2f238445 to your computer and use it in GitHub Desktop.
Save philcryer/19bc9879a626983eb42159be2f238445 to your computer and use it in GitHub Desktop.
An SSL enabled NGINX config to proxy Nexus-IQ
# An SSL enabled NGINX config to proxy Nexus-IQ
# https://gist.github.com/philcryer/19bc9879a626983eb42159be2f238445
server {
listen *:80;
server_name nexus-iq-server;
return 301 https://$server_name$request_uri;
}
server {
listen *:443;
server_name nexus-iq-server;
client_max_body_size 1G;
ssl on;
ssl_certificate /etc/ssl/certs/nexus-iq-server.crt;
ssl_certificate_key /etc/ssl/certs/nexus-iq-server.key;
location / {
proxy_read_timeout 60;
proxy_redirect off;
proxy_pass_header Server;
proxy_cookie_path ~*^/.* /;
proxy_pass http://localhost:8070/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment