Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
server {
listen [::]:80;
root /var/www/html/;
index index.html;
location / {
root /var/www/html/;
access_log on;
try_files $uri $uri/;
location ^~ /irc/ {
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