gitea. Added Nginx config example.

This commit is contained in:
Alexey Skobkin 2022-03-02 03:35:06 +03:00
parent fef9f81236
commit 1c2d48d930
1 changed files with 23 additions and 0 deletions

23
gitea/nginx/gitea.conf Normal file
View File

@ -0,0 +1,23 @@
server {
listen 443 ssl http2;
server_name git.domain.tld;
access_log /var/log/nginx/git.domain.tld.access;
error_log /var/log/nginx/git.domain.tld.error;
charset utf-8;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:3000;
}
#include config/gzip.conf;
# SSL config
#include ssl/domain.tld.conf;
}