diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 21:59:01 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 21:59:01 +0300 |
commit | 69277d72af2f7ab762f05883b4ff6048c8095683 (patch) | |
tree | ce58b88287b62ad63531139d5195467674526cfa /docker | |
parent | workflows/ci: build frontend as well as backend (diff) | |
download | cgitize-69277d72af2f7ab762f05883b4ff6048c8095683.tar.gz cgitize-69277d72af2f7ab762f05883b4ff6048c8095683.zip |
frontend: serve from / instead of /git/
Diffstat (limited to 'docker')
-rw-r--r-- | docker/frontend/etc/nginx/conf.d/default.conf | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/docker/frontend/etc/nginx/conf.d/default.conf b/docker/frontend/etc/nginx/conf.d/default.conf index 4dd9402..c76fdb8 100644 --- a/docker/frontend/etc/nginx/conf.d/default.conf +++ b/docker/frontend/etc/nginx/conf.d/default.conf @@ -4,21 +4,17 @@ server { server_name _; location / { - index index.html; - } - - location /cgit/ { - alias /usr/share/cgit/; - } - - location /git/ { include fastcgi_params; fastcgi_pass unix:/run/fcgiwrap.sock; fastcgi_param CGIT_CONFIG /etc/cgit/cgitrc; fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi; - fastcgi_split_path_info ^(/git/?)(.+)$; + fastcgi_split_path_info ^(/?)(.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; } + + location /cgit/ { + alias /usr/share/cgit/; + } } |