Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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