nginx/forgejo.conf

16 lines
445 B
Text

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.exozy.me;
include conf.d/ssl;
location / {
proxy_pass http://unix:/run/forgejo/forgejo.sock;
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;
client_max_body_size 1G;
}
}