aboutsummaryrefslogtreecommitdiff
path: root/services/templates
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-28 16:18:56 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-28 16:33:19 +0800
commit4d3232069bbb6f89cbbf50ca64209d39fdfcd89f (patch)
tree031b86d225ed9690893a42296023c14ba1a0a984 /services/templates
parent0052b9d898e52584b53a4de219bdb58df20be0e1 (diff)
downloadcrupest-4d3232069bbb6f89cbbf50ca64209d39fdfcd89f.tar.gz
crupest-4d3232069bbb6f89cbbf50ca64209d39fdfcd89f.tar.bz2
crupest-4d3232069bbb6f89cbbf50ca64209d39fdfcd89f.zip
feat(git): use non-root and add robots.
Diffstat (limited to 'services/templates')
-rw-r--r--services/templates/cgitrc.template3
-rw-r--r--services/templates/nginx/conf.d/root.conf.template2
2 files changed, 2 insertions, 3 deletions
diff --git a/services/templates/cgitrc.template b/services/templates/cgitrc.template
index ffffaae..4cc88d2 100644
--- a/services/templates/cgitrc.template
+++ b/services/templates/cgitrc.template
@@ -10,12 +10,11 @@ enable-log-filecount=1
enable-log-linecount=1
section-from-path=1
-clone-url=@@CRUPEST_ROOT_URL@@/$CGIT_REPO_URL
+clone-url=@@CRUPEST_ROOT_URL@@$CGIT_REPO_URL
snapshots=tar.gz tar.bz2 zip
source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
about-filter=/usr/lib/cgit/filters/about-formatting.sh
readme=:README.md
readme=:README
-remove-suffix=1
scan-path=/git/
diff --git a/services/templates/nginx/conf.d/root.conf.template b/services/templates/nginx/conf.d/root.conf.template
index dd223c2..28c2fea 100644
--- a/services/templates/nginx/conf.d/root.conf.template
+++ b/services/templates/nginx/conf.d/root.conf.template
@@ -14,7 +14,7 @@ server {
location /git/ {
include common/proxy-common;
client_max_body_size 5G;
- proxy_pass http://git-server:80;
+ proxy_pass http://git-server:3636;
}
location = /github {