From ea91c1e2d868ce9b3e91b9abc9a74d3e84261335 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Tue, 9 Mar 2021 23:05:47 +0000 Subject: Migration to a new server, moved nginx out of docker --- nginx/conf.d/cgit.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nginx/conf.d/cgit.conf (limited to 'nginx/conf.d') diff --git a/nginx/conf.d/cgit.conf b/nginx/conf.d/cgit.conf new file mode 100644 index 0000000..651a0eb --- /dev/null +++ b/nginx/conf.d/cgit.conf @@ -0,0 +1,23 @@ +server { + listen 80; + server_name git.dybiec.info; + return 301 https://$server_name$request_uri; +} + +server { + listen 443 ssl http2; + server_name git.dybiec.info; + location ~* ^.+(cgit.(css|png)|favicon.ico|robots.txt) { + root /usr/share/cgit/; + } + location / { + try_files $uri @cgit; + } + location @cgit { + gzip off; + include uwsgi_params; + uwsgi_modifier1 9; + uwsgi_pass unix:/run/uwsgi/cgit.sock; + } + + } -- cgit 1.4.1