aboutsummaryrefslogtreecommitdiff
path: root/templates/nginx/conf.d/git.conf.template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-11 01:12:29 +0800
committerYuqian Yang <crupest@crupest.life>2025-01-20 23:24:41 +0800
commit90a72d2d7ed4a5eadfe36f62d81f26ca3324e49b (patch)
tree0e5241878de3fc7cd36e4e5bcd2eac3ae1b063f6 /templates/nginx/conf.d/git.conf.template
parent907eff64f175822e1113887a8b547490dadf9687 (diff)
downloadcrupest-90a72d2d7ed4a5eadfe36f62d81f26ca3324e49b.tar.gz
crupest-90a72d2d7ed4a5eadfe36f62d81f26ca3324e49b.tar.bz2
crupest-90a72d2d7ed4a5eadfe36f62d81f26ca3324e49b.zip
HALF WORK: 2024.1.20 - 4
Diffstat (limited to 'templates/nginx/conf.d/git.conf.template')
-rw-r--r--templates/nginx/conf.d/git.conf.template20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/nginx/conf.d/git.conf.template b/templates/nginx/conf.d/git.conf.template
new file mode 100644
index 0000000..3a2948c
--- /dev/null
+++ b/templates/nginx/conf.d/git.conf.template
@@ -0,0 +1,20 @@
+server {
+ server_name git.${CRUPEST_DOMAIN};
+ include common/https-listen;
+
+ location / {
+ include common/proxy-common;
+ proxy_pass http://forgejo:3000/;
+ }
+
+ client_max_body_size 5G;
+}
+
+
+server {
+ server_name git.${CRUPEST_DOMAIN};
+ include common/http-listen;
+
+ include common/https-redirect;
+ include common/acme-challenge;
+}