Index

joshstock.in / c8140e4

Source for serving and static templating/compiling of https://joshstock.in.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
5104 Jan 2020 15:22c8140e4Update nginx root configurationJosh Stockin142N

Blob @ joshstock.in / nginx / prod / root.conf

text/plain452 bytesdownload raw
1server {
2 listen 443 ssl http2;
3 listen [::]:443 ssl http2;
4 server_name joshstock.in;
5 rewrite ^/(.*)/$ /$1 permanent; # truncate forward slash
6 root /var/www/html;
7 index index.html;
8 error_page 404 /error-404.html; location = /error-404.html {
9 root /var/www/html;
10 }
11 rewrite_log on;
12 location / {
13 try_files $uri $uri.html =404;
14 }
15 location /static {
16 try_files $uri =404;
17 }
18 location ~* ^\/blog\/(.*)$ {
19 try_files /blog-$1.html =404;
20 }
21}
22