summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-12-16 14:03:02 +0000
committerXiao Pan <gky44px1999@gmail.com>2023-12-16 14:03:02 +0000
commitda911df3e32edb5344ee60736fb50116346f9827 (patch)
tree2de73b85e5ba43824dc9a08a619e76cc8fa68504 /etc
parenta4026a1fe1c82535879e355900bcff3fc31f8411 (diff)
update
Diffstat (limited to 'etc')
-rw-r--r--etc/nginx/nginx.conf5
1 files changed, 1 insertions, 4 deletions
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;