Diff options
-rw-r--r--custom/servers/apache.conf8
-rw-r--r--custom/servers/nginx.conf14
2 files changed, 11 insertions, 11 deletions
diff --git a/custom/servers/apache.conf b/custom/servers/apache.conf
index 7778c7f..80f750e 100644
--- a/custom/servers/apache.conf
+++ b/custom/servers/apache.conf
@@ -248,10 +248,10 @@ AddType text/plain .txt
# once browsers have seen it.
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
- # These five files are the only things served off disk. cgit.css and
- # cgit.js are the paths cgit's HTML points at by default, so if you
- # relocate the assets update both these Alias targets and the css, js,
- # logo and favicon settings in cgitrc to agree.
+ # These five files are the only things served off disk. cgit's default
+ # css, js, logo and favicon settings point at these paths, so if you
+ # relocate the assets update both these Alias targets and those settings
+ # in cgitrc to agree.
Alias /cgit.css /usr/share/cgit/cgit.css
Alias /cgit.js /usr/share/cgit/cgit.js
Alias /cgit.png /usr/share/cgit/cgit.png
diff --git a/custom/servers/nginx.conf b/custom/servers/nginx.conf
index d18a109..37cf738 100644
--- a/custom/servers/nginx.conf
+++ b/custom/servers/nginx.conf
@@ -199,9 +199,9 @@ http {
# hard to undo once browsers have seen it.
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
- # The document root is the directory that holds the static assets. cgit
- # emits absolute links to /cgit.css and /cgit.png by default, so those
- # files must resolve at the root of the URL space.
+ # The document root is the directory that holds the static assets.
+ # cgit's default css, js, logo and favicon settings are absolute links
+ # to these files, so they must resolve at the root of the URL space.
root /usr/share/cgit;
# The only request body cgit ever reads is the auth-filter login form,
@@ -320,7 +320,7 @@ http {
# access_log off;
# }
#
-# cgit's default css=/cgit.css and logo=/cgit.png point at the domain root, so
-# under a sub-path also set css=/cgit/cgit.css and logo=/cgit/cgit.png in
-# cgitrc. cgit derives the /cgit prefix from SCRIPT_NAME. If links come out
-# wrong, pin it in cgitrc with virtual-root=/cgit/.
+# cgit's default css, js, logo and favicon settings point at the domain root,
+# so under a sub-path also set them to the /cgit/ paths in cgitrc. cgit
+# derives the /cgit prefix from SCRIPT_NAME. If links come out wrong, pin it
+# in cgitrc with virtual-root=/cgit/.