2024-06-04 18:02:28 +00:00
|
|
|
{% for fqdn in fqdns %}
|
|
|
|
server {
|
|
|
|
server_name {{ fqdn }};
|
|
|
|
|
|
|
|
listen [::]:443 ssl ipv6only=off;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ fqdn }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ fqdn }}/privkey.pem;
|
|
|
|
|
|
|
|
location / {
|
2024-06-05 13:00:14 +00:00
|
|
|
proxy_pass http://unix:/var/lib/forgejo/socket;
|
2024-06-04 18:02:28 +00:00
|
|
|
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
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 512M;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
{% endfor %}
|