Skip to content

Instantly share code, notes, and snippets.

@timo
Created July 18, 2019 16:58
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 timo/231d72dfd701a943b33ebcd27d5ad692 to your computer and use it in GitHub Desktop.
Save timo/231d72dfd701a943b33ebcd27d5ad692 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
listen 443 ssl;
server_name rakudo.org rakudo.perl6.org;
location ~ /files/rakudo$ {
return 302 https://github.com/rakudo/rakudo/releases;
}
location ~ /$ {
proxy_pass http://localhost:4242/$uri;
}
location / {
proxy_pass http://localhost:4242/;
}
ssl_certificate /etc/letsencrypt/live/docs.perl6.wakelift.de/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/docs.perl6.wakelift.de/privkey.pem; # managed by Certbot
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment