bundles/ldap-frontend: use proper FLASK_SECRET_KEY
This commit is contained in:
parent
121f49a828
commit
4c55f0878d
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LDAP fronten
|
Description=LDAP frontend
|
||||||
After=network.target
|
After=network.target
|
||||||
Requires=slapd.service
|
Requires=slapd.service
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ Requires=slapd.service
|
||||||
User=www-data
|
User=www-data
|
||||||
Group=www-data
|
Group=www-data
|
||||||
Environment=APP_CONFIG=/opt/ldap-frontend/config.json
|
Environment=APP_CONFIG=/opt/ldap-frontend/config.json
|
||||||
|
Environment=FLASK_SECRET_KEY=${repo.vault.password_for(f'{node.name} ldap-frontend secret key')}
|
||||||
WorkingDirectory=/opt/ldap-frontend/src
|
WorkingDirectory=/opt/ldap-frontend/src
|
||||||
ExecStart=/opt/ldap-frontend/venv/bin/gunicorn --threads 4 --bind 127.0.0.1:23000 'ldap_frontend:app'
|
ExecStart=/opt/ldap-frontend/venv/bin/gunicorn --threads 4 --bind 127.0.0.1:23000 'ldap_frontend:app'
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ actions = {
|
||||||
|
|
||||||
files = {
|
files = {
|
||||||
'/etc/systemd/system/ldap-frontend.service': {
|
'/etc/systemd/system/ldap-frontend.service': {
|
||||||
|
'content_type': 'mako',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'action:systemd-reload',
|
'action:systemd-reload',
|
||||||
'svc_systemd:ldap-frontend:restart',
|
'svc_systemd:ldap-frontend:restart',
|
||||||
|
|
Loading…
Reference in a new issue