Skip to content

Instantly share code, notes, and snippets.

@NeilHanlon
Created March 15, 2019 12:50
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 NeilHanlon/d640ffcd54c539bc58e6d186d42571a9 to your computer and use it in GitHub Desktop.
Save NeilHanlon/d640ffcd54c539bc58e6d186d42571a9 to your computer and use it in GitHub Desktop.
server {
listen [::]:80;
server_name www.drop1.neilhanlon.me drop1.neilhanlon.me;
root /var/www/html/;
index index.html;
location / {
root /var/www/html/;
access_log on;
try_files $uri $uri/;
}
location ^~ /irc/ {
proxy_pass http://127.0.0.1:9090/;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
# by default nginx times out connections in one minute
proxy_read_timeout 1d;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment