feat: enable external access to gitea (#344)

- add git.unkin.net to certbot
- export haproxy resources for gitea
- add be_gitea to haproxy, import the certbot cert
- update the ROOT_URL for gitea instances

Reviewed-on: #344
This commit was merged in pull request #344.
This commit is contained in:
2025-07-06 13:47:56 +10:00
parent 372d99893a
commit 0063f68bc6
4 changed files with 53 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
# enable external access via haproxy
class profiles::gitea::haproxy (
Boolean $enable = false,
){
# export haproxy balancemember
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_443":
service => 'be_gitea',
ports => [443],
options => [
"cookie ${facts['networking']['hostname']}",
'ssl',
'verify none',
'check',
'inter 2s',
'rise 3',
'fall 2',
]
}
}