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
commit5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b (patch)
tree726e6b0ec2f86a4530161e4e4e90c0632c134f5a /services/templates
parentd201f6ef9c4b937f0ae8ee98dc291d7cfa10da92 (diff)
downloadcrupest-5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b.tar.gz
crupest-5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b.tar.bz2
crupest-5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b.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 {