feat: enable external access to gitea

- 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
This commit is contained in:
2025-07-05 17:22:08 +10:00
parent 372d99893a
commit 46e72f5dbf
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',
]
}
}