diff --git a/files/aproxy/conf.lua.j2 b/files/aproxy/conf.lua.j2 new file mode 100644 index 0000000..82f044b --- /dev/null +++ b/files/aproxy/conf.lua.j2 @@ -0,0 +1,10 @@ +return { + version = 1, + wantedScripts = { + ['webfinger_allowlist'] = {accounts = { +{% for account in cfg.aproxy_accounts %} + "{{ account }}", +{% endfor %} + } } + } +} diff --git a/files/compose.service.j2 b/files/compose.service.j2 new file mode 100644 index 0000000..3f5bf07 --- /dev/null +++ b/files/compose.service.j2 @@ -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