Index

joshstock.in / d044bc5

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
5304 Jan 2020 15:48e821a92Modify nginx configurationJosh Stockin101N

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

text/plain392 bytesdownload raw
1server {
2 listen 80;
3 listen [::]:80;
4 server_name git.localhost;
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 { # the only static file we want on this domain
14 root /var/www/html;
15 }
16}
17