Update configs

This commit is contained in:
Selfhost Root 2023-03-15 05:14:00 -03:00
parent b7e6599c99
commit 72ed0afc45
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
server {
listen 80;
access_log /var/log/nginx/files.access.log combined;
error_log /var/log/nginx/files.error.log;

View File

@ -3,12 +3,15 @@ server {
server_name git.zzls.xyz;
# Security headers and general settings
include configs/securityheaders.conf;
#include configs/securityheaders.conf;
include configs/general.conf;
location / {
proxy_pass http://unix:/run/forgejo/forgejo.socket;
include configs/proxyheaders.conf;
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;
}
# QUIC