aboutsummaryrefslogtreecommitdiff
path: root/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'entrypoint.sh')
-rwxr-xr-xentrypoint.sh22
1 files changed, 2 insertions, 20 deletions
diff --git a/entrypoint.sh b/entrypoint.sh
index bc46d2b..a8de13d 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -59,30 +59,12 @@ http {
server_tokens off;
server {
listen $NGINX_LISTEN; listen [::]:$NGINX_LISTEN;
- root /var/git;
-
- location /local {
- alias /var/git/local;
- add_header Cache-Control "public, max-age=604800";
- }
-
+ root /var/git/.webroot;
+
location / {
try_files \$uri @cgit;
}
- # Serve static files with nginx and allow local files to override
- location ~* ^.+(cgit.(css|png)|favicon.ico|robots.txt) {
- try_files @webappstatic @overrides;
- }
- location @webappstatic {
- root /usr/share/webapps/cgit;
- expires 30d;
- }
- location @overrides {
- root /var/git;
- expires 30d;
- }
-
location @cgit {
gzip off;
fastcgi_param PATH_INFO \$uri;