diff options
| author | crupest <crupest@outlook.com> | 2024-11-11 01:12:29 +0800 | 
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2024-12-22 17:45:13 +0800 | 
| commit | ce79647caae24e77fb2e978541a30dca29026b8a (patch) | |
| tree | 4197980a04943b42941d3fce7cb16d1f7ea400bd /templates/nginx/git.conf.template | |
| parent | d4cc5937df9f45391c4f980d3978b91740bfecc0 (diff) | |
| download | crupest-ce79647caae24e77fb2e978541a30dca29026b8a.tar.gz crupest-ce79647caae24e77fb2e978541a30dca29026b8a.tar.bz2 crupest-ce79647caae24e77fb2e978541a30dca29026b8a.zip | |
HALF WORK: 2024.12.22
code.
Diffstat (limited to 'templates/nginx/git.conf.template')
| -rw-r--r-- | templates/nginx/git.conf.template | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/templates/nginx/git.conf.template b/templates/nginx/git.conf.template new file mode 100644 index 0000000..ea2a627 --- /dev/null +++ b/templates/nginx/git.conf.template @@ -0,0 +1,22 @@ +server { +    listen 443 ssl http2; +    listen [::]:443 ssl http2; +    server_name git.${CRUPEST_DOMAIN}; +     +    location / { +        include common/proxy-common; +        proxy_pass http://forgejo:3000/; +    } + +    client_max_body_size 5G; +} + + +server { +    listen 80; +    listen [::]:80; +    server_name git.${CRUPEST_DOMAIN}; + +    include common/https-redirect; +    include common/acme-challenge; +} | 
