add files dir
This commit is contained in:
parent
2e999f8e9b
commit
52fbc871b2
2 changed files with 29 additions and 0 deletions
10
files/aproxy/conf.lua.j2
Normal file
10
files/aproxy/conf.lua.j2
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
version = 1,
|
||||||
|
wantedScripts = {
|
||||||
|
['webfinger_allowlist'] = {accounts = {
|
||||||
|
{% for account in cfg.aproxy_accounts %}
|
||||||
|
"{{ account }}",
|
||||||
|
{% endfor %}
|
||||||
|
} }
|
||||||
|
}
|
||||||
|
}
|
19
files/compose.service.j2
Normal file
19
files/compose.service.j2
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{% import './templates/systemd.j2' as systemd %}
|
||||||
|
|
||||||
|
{{ systemd.service() }}
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description={{ env_dict.service_name }} (docker compose'd thing)
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=true
|
||||||
|
WorkingDirectory={{ env_dict.working_directory }}
|
||||||
|
ExecStart=/usr/bin/docker-compose up -d --remove-orphans
|
||||||
|
ExecStop=/usr/bin/docker-compose down
|
||||||
|
|
||||||
|
{{ systemd.service_security() }}
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue