Created
March 14, 2021 19:23
-
-
Save rba/c11feff2a67fe3d74bf170e32ba036dc to your computer and use it in GitHub Desktop.
docs.raku.org
This file contains 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 docs.raku.org docs.rakulang.site; | |
include snippets/letsencrypt.conf; | |
return 301 https://$host$request_uri; | |
access_log /var/log/nginx/docs.raku.org.access.log; | |
error_log /var/log/nginx/docs.raku.org.error.log; | |
location / { | |
try_files $uri $uri/ $uri.html /404.html; | |
} | |
} | |
server { | |
listen 443 ssl http2; | |
server_name docs.raku.org docs.rakulang.site; | |
ssl_certificate /etc/letsencrypt/live/docs.raku.org/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/docs.raku.org/privkey.pem; # managed by Certbot | |
ssl_trusted_certificate /etc/letsencrypt/live/docs.raku.org/chain.pem; | |
include snippets/letsencrypt.conf; | |
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | |
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | |
root /var/www/docs.raku.org/; | |
access_log /var/log/nginx/docs.raku.org.access.log; | |
error_log /var/log/nginx/docs.raku.org.error.log; | |
location / { | |
try_files $uri $uri/ $uri.html /404.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment