Skip to content

Instantly share code, notes, and snippets.

@alexjurkiewicz
Last active June 18, 2018 23:00
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 alexjurkiewicz/08057c59ed0e587c04698c03652d9510 to your computer and use it in GitHub Desktop.
Save alexjurkiewicz/08057c59ed0e587c04698c03652d9510 to your computer and use it in GitHub Desktop.
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