Index

joshstock.in / 2ae4db8

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
11905 Mar 2021 17:3111a0185Update nginx configuration for productionJosh Stockin111G

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

text/plain863 bytesdownload raw
1server {
2 listen 443 ssl http2;
3 listen [::]:443 ssl http2;
4 server_name git.joshstock.in;
5 rewrite ^/(.*)/(\?.*)?$ /$1$2 permanent;
6 error_page 404 /error-404.html; location = /error-404.html {
7 root /var/www/html;
8 }
9 location / {
10 default_type text/html;
11 content_by_lua_file /home/ubuntu/resty-gitweb/app.lua;
12 }
13 location = /favicon.ico {
14 root /var/www/html;
15 }
16 location = /static/favicon.png {
17 root /var/www/html;
18 }
19 location ~ /(.*)\.git$ {
20 fastcgi_intercept_errors on;
21 fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
22 include fastcgi_params;
23 fastcgi_param GIT_HTTP_EXPORT_ALL "";
24 fastcgi_param GIT_PROJECT_ROOT /home/git;
25 fastcgi_param PATH_INFO $uri;
26 fastcgi_pass unix:/var/run/fcgiwrap.socket;
27 }
28}
29