diff options
author | mia <mia@mia.jetzt> | 2024-07-07 10:11:04 -0700 |
---|---|---|
committer | mia <mia@mia.jetzt> | 2024-07-07 10:11:04 -0700 |
commit | e66cc657e53c4e24d8ebdb19c170e6fe54301566 (patch) | |
tree | 10574370e919080edf6592684cfaede06d5c1135 | |
parent | 55b4278719b1af00a858acd3065b91f527eb8fd9 (diff) | |
download | asylum-e66cc657e53c4e24d8ebdb19c170e6fe54301566.tar.gz asylum-e66cc657e53c4e24d8ebdb19c170e6fe54301566.zip |
disable absolute redirects globally
-rw-r--r-- | cgit/header.html | 1 | ||||
-rw-r--r-- | nginx/nginx.conf | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cgit/header.html b/cgit/header.html deleted file mode 100644 index c9f6673..0000000 --- a/cgit/header.html +++ /dev/null @@ -1 +0,0 @@ -<a href="/priv" id="visibility">%</a> diff --git a/nginx/nginx.conf b/nginx/nginx.conf index a5e108d..6a091b1 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -37,12 +37,13 @@ http { js_import nginx.js; js_shared_dict_zone zone=auth_token_cache:32k timeout=5m evict; + absolute_redirect off; + server { listen 80 default_server; listen [::]:80 default_server; default_type text/plain; - absolute_redirect off; root /srv/web/$host; index index.html; } |