update: Updated Defaults
Johto Infrastructure Pipeline / Run Ansible Lint (push) Successful in 1m45s
Johto Infrastructure Pipeline / Deploy to Production (push) Has been skipped

Updated base template to make changes to default settings gitea
- Remove requirement for adguard home to be running. container now only requires network to be started before starting.
- Disabled registration via environment variables. This forces new users to be created only by a gitea admin, helping secure the instance. This is applied as a default so current workflow does not require external user registration. if that need arises this setting will be changed.
This commit is contained in:
Jordan Del Pilar
2026-07-08 09:43:27 -07:00
parent 0204210c46
commit 73f894e9b1
@@ -1,8 +1,6 @@
# {{ ansible_managed }}
[Unit]
After=network-online.target
After=adguard.service
Requires=adguard.service
StartLimitBurst=10
StartLimitIntervalSec=120
@@ -42,6 +40,7 @@ Volume=/etc/timezone:/etc/timezone:ro
Volume=/etc/localtime:/etc/localtime:ro
Environment=TZ={{ timezone | default('America/Los_Angeles') }}
Environment=DISABLE_REGISTRATION=true
{% if item.env is defined %}
{% for key, value in item.env.items() | sort %}
Environment={{ key }}={{ value }}