35 lines
601 B
Plaintext
35 lines
601 B
Plaintext
upstream forgejo {
|
|
server unix:/run/forgejo/forgejo.sock;
|
|
}
|
|
|
|
server {
|
|
access_log /var/log/nginx/git.access.log combined;
|
|
server_name git.zzls.xyz;
|
|
include configs/general.conf;
|
|
include configs/security.conf;
|
|
include configs/robots.conf;
|
|
|
|
location / {
|
|
proxy_pass http://forgejo;
|
|
include configs/proxy.conf;
|
|
client_max_body_size 128M;
|
|
}
|
|
|
|
# QUIC
|
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
|
|
|
listen 443 ssl;
|
|
listen 443 quic;
|
|
http2 on;
|
|
include configs/ssl.conf;
|
|
|
|
}
|
|
|
|
server {
|
|
if ($host = git.zzls.xyz) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
listen 80;
|
|
server_name git.zzls.xyz;
|
|
}
|