From da911df3e32edb5344ee60736fb50116346f9827 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 16 Dec 2023 14:03:02 +0000 Subject: update --- etc/nginx/nginx.conf | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'etc/nginx/nginx.conf') diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index 072089c5..7fe402c2 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -123,6 +123,7 @@ http { # https://wiki.gentoo.org/wiki/User:Halcon/HOWTO_cgit_uwsgi_nginx # https://uwsgi-docs.readthedocs.io/en/latest/Nginx.html # https://nginx.org/en/docs/http/ngx_http_uwsgi_module.html + # https://stackoverflow.com/questions/16182421/cgit-and-nginx-url-rewrite server { listen 80; server_name git.flylightning.xyz; @@ -134,10 +135,6 @@ http { expires 30d; } location / { - try_files $uri @cgit; - } - location @cgit { - gzip off; include uwsgi_params; uwsgi_modifier1 9; uwsgi_pass unix:/run/uwsgi/cgit.sock; -- cgit v1.2.3-70-g09d2