Source for serving and static templating/compiling of https://joshstock.in.
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
---|---|---|---|---|---|---|---|---|
155 | 24 Jul 2022 22:45 | d2c0b95 | Update nginx configuration | Josh Stockin | 1 | 14 | 0 | G |
1 | server { |
2 | listen 443 ssl http2; |
3 | listen [::]:443 ssl http2; |
4 | server_name start.joshstock.in; |
5 | rewrite ^/(.*)/$ /$1 permanent; # truncate forward slash |
6 | root /var/www/startpage; |
7 | error_page 404 /error-404.html; location = /error-404.html {} |
8 | location = / { |
9 | index index.html; |
10 | } |
11 | location / { |
12 | try_files $uri $uri.html =404; |
13 | } |
14 | } |
15 |