Source for serving and static templating/compiling of https://joshstock.in.
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
---|---|---|---|---|---|---|---|---|
48 | 04 Jan 2020 12:53 | 6799f82 | Create git pager source | Josh Stockin | 1 | 7 | 8 | N |
1 | server { |
2 | listen 443 ssl http2; |
3 | listen [::]:443 ssl http2; |
4 | server_name git.joshstock.in; |
5 | rewrite ^/(.*)/$ /$1 permanent; # truncate forward slash |
6 | error_page 404 /error-404.html; location = /error-404.html { |
7 | root /var/www/html; |
8 | } |
9 | rewrite_log on; |
10 | proxy_intercept_errors on; |
11 | location / { |
12 | proxy_pass http://localhost:8080; |
13 | } |
14 | location = /favicon.ico { # the only static file we want on this domain |
15 | root /var/www/html; |
16 | } |
17 | } |
18 |