Add forgejo role
On alpine, with OIDC auth and a podman runner.
This commit is contained in:
parent
f863d87fbf
commit
af9e30eb3e
5 changed files with 285 additions and 0 deletions
23
roles/forgejo/templates/forgejo.conf.j2
Normal file
23
roles/forgejo/templates/forgejo.conf.j2
Normal file
|
@ -0,0 +1,23 @@
|
|||
{% 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 / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
|
||||
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 %}
|
Loading…
Add table
Add a link
Reference in a new issue