mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2026-03-10 03:21:42 +01:00
feat: waitress port from services option
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
{% if item.get("port") %}
|
||||
{% set port = item.port %}
|
||||
{% else %}
|
||||
{% set port = services[item.name].port %}
|
||||
{% endif %}
|
||||
|
||||
{% if item.get("oidc") %}
|
||||
{% set port = port + 1000 %}
|
||||
{% endif %}
|
||||
|
||||
[Unit]
|
||||
Description={{ item.name }} on {{ item.port }} at {{ item.path }}
|
||||
Description={{ item.name }} on {{ port }} at {{ item.path }}
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
@@ -8,7 +18,7 @@ WorkingDirectory={{ item.path }}
|
||||
Type=simple
|
||||
User=www-data
|
||||
|
||||
ExecStart=/usr/bin/waitress-serve --host 0.0.0.0 --port {{ item.port }} --call 'app:createApp'
|
||||
ExecStart=/usr/bin/waitress-serve --host 0.0.0.0 --port {{ port }} --call 'app:createApp'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user