dotfiles/roles/forgejo/templates/nginx.conf
Matej Focko e0f3fbe22b
fix(forgejo): handle reverse proxy
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-11-18 15:31:15 +01:00

18 lines
376 B
Nginx Configuration File

# {{ ansible_managed }}
upstream forgejo {
server 127.0.0.1:{{ forgejo_http_port }};
}
server {
listen 443 ssl http2; # managed by Certbot
listen [::]:443 ssl http2; # managed by Certbot
include ssl.conf;
server_name {{ forgejo_subdomain }}.{{ host_fqdn }};
location ~ / {
include proxy.conf;
proxy_pass http://forgejo;
}
}