bank: Set up revbank-deposit
This commit is contained in:
parent
75795f0238
commit
f5a61a557d
7 changed files with 97 additions and 3 deletions
4
roles/bank/templates/revbank-deposit.conf
Normal file
4
roles/bank/templates/revbank-deposit.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
PUBLIC_URL=https://{{ deposit_hostname }}
|
||||
MOLLIE_API_KEY={{ lookup('passwordstore', 'mollie subkey=apikey') }}
|
18
roles/bank/templates/revbank-deposit.service
Normal file
18
roles/bank/templates/revbank-deposit.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Revbank Deposit
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
ExecStart=/usr/local/lib/revbank-deposit/.venv/bin/fastapi run main.py --host 127.0.0.1
|
||||
WorkingDirectory=/usr/local/lib/revbank-deposit
|
||||
EnvironmentFile=/etc/revbank-deposit.conf
|
||||
DynamicUser=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue