Index

joshstock.in / 8147f6b

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
6405 Jan 2020 00:313d81656Add static/favicon.png serving to git.* nginx configJosh Stockin141N

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

text/plain430 bytesdownload raw
1server {
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 proxy_intercept_errors on;
10 location / {
11 proxy_pass http://localhost:8080;
12 }
13 location = /favicon.ico {
14 root /var/www/html;
15 }
16 location = /static/favicon.png {
17 root /var/www/html;
18 }
19}
20