Created
March 15, 2019 12:50
-
-
Save NeilHanlon/d640ffcd54c539bc58e6d186d42571a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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