diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-04-18 08:53:56 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-04-18 08:53:56 +0200 |
commit | f64cadd81fbaebeb8496f3cd9053764fec06a64e (patch) | |
tree | 33a2c3bb7fb6c37da2b0266f7b7084dec5c4bcf0 /playbooks.d/webserver/share/sites.d/https/nl.tyil.git | |
parent | 342d8ef5e1d988877efbd1bc5d333640d7523570 (diff) |
Various fixes to make the webserver playbook work
Diffstat (limited to 'playbooks.d/webserver/share/sites.d/https/nl.tyil.git')
-rw-r--r-- | playbooks.d/webserver/share/sites.d/https/nl.tyil.git | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/playbooks.d/webserver/share/sites.d/https/nl.tyil.git b/playbooks.d/webserver/share/sites.d/https/nl.tyil.git new file mode 100644 index 0000000..65d1bb9 --- /dev/null +++ b/playbooks.d/webserver/share/sites.d/https/nl.tyil.git @@ -0,0 +1,30 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name git.tyil.nl; + + ssl_certificate /etc/letsencrypt/live/git.tyil.nl/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/git.tyil.nl/privkey.pem; + + include /etc/nginx/snippets.d/certbot.conf; + include /etc/nginx/snippets.d/headers.conf; + include /etc/nginx/snippets.d/ssl.conf; + + root /usr/share/webapps/cgit/1.2.3-r100/htdocs; + + location / { + try_files $uri @cgit; + } + + location @cgit { + include snippets.d/uwsgi.conf; + + gzip off; + + uwsgi_modifier1 9; + #uwsgi_param PATH_INFO $fastcgi_path_info; + + uwsgi_pass 127.0.0.1:1234; + } +} |