Last active
June 18, 2018 23:00
-
-
Save alexjurkiewicz/08057c59ed0e587c04698c03652d9510 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 { | |
server_name crawl.project357.org; | |
listen 80; | |
if ($server_port = '80') { | |
rewrite ^(.*)$ https://crawl.project357.org$1; | |
} | |
listen 172.30.0.178:443 ssl http2 deferred; | |
ssl_certificate /etc/letsencrypt/live/crawl.project357.org/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/crawl.project357.org/privkey.pem; | |
root /dev/null; | |
default_type text/plain; | |
keepalive_timeout 7200; | |
location / { | |
proxy_pass http://127.0.0.1:8080; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $http_host; | |
proxy_read_timeout 7200; | |
} | |
location /morgue/ { | |
alias /opt/dgl-chroot/var/gamedata/dcss/morgue/; | |
autoindex on; | |
gzip_types *; | |
charset utf-8; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment