Diff options
Diffstat (limited to 'custom/servers/nginx.conf')
-rw-r--r--custom/servers/nginx.conf5
1 file changed, 1 insertion, 4 deletions
diff --git a/custom/servers/nginx.conf b/custom/servers/nginx.conf
index 2f0d974..0658554 100644
--- a/custom/servers/nginx.conf
+++ b/custom/servers/nginx.conf
@@ -119,7 +119,6 @@ http {
root /var/www/html;
}
- # Everything else moves to HTTPS.
location / {
return 301 https://$host$request_uri;
}
@@ -217,8 +216,7 @@ http {
try_files $uri =404;
}
- # Everything that is not a static asset above is a cgit URL, the repo
- # index, a repository, a page within a repository, a snapshot, a feed.
+ # Everything else is a cgit URL.
location / {
# The CGI environment, normally "include fastcgi_params", written
# out here so this config stands alone. The cookie and referer
@@ -274,7 +272,6 @@ http {
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
- # Hand off to the fcgiwrap socket.
fastcgi_pass unix:/run/fcgiwrap.socket;
# Large outputs such as snapshot tarballs and blame on big files