1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/lokole/templates/webapp_secrets.sh.j2
Jerry Vonau 45dcf7214e OPWEN_SETTINGS
From an install.py machine where supervisord is used this value is passed
pi@jv-rpi-stock:~ $ cat /etc/supervisor/conf.d/lokole_gunicorn.conf
[program:lokole_gunicorn]
command="/lokole/venv/bin/gunicorn" --bind="unix:/lokole/state/lokole_gunicorn.sock" --timeout=300 --workers=3 --log-level=error opwen_email_client.webapp:app
autostart=true
autorestart=true
startretries=3
stopasgroup=true
stderr_logfile=/lokole/logs/lokole_gunicorn.stderr.log
stdout_logfile=/lokole/logs/lokole_gunicorn.stdout.log
user=root
environment=OPWEN_SETTINGS=/lokole/state/settings.env
2021-05-19 06:42:34 -05:00

8 lines
503 B
Django/Jinja

export OPWEN_SETTINGS='{{ lokole_run_directory }}/settings.env'
export OPWEN_SIM_TYPE='{{ lokole_sim_type }}'
export OPWEN_STATE_DIRECTORY='{{ lokole_run_directory }}'
export OPWEN_APP_ROOT='{{ lokole_url }}/'
export OPWEN_MAX_UPLOAD_SIZE_MB=10
export OPWEN_SYNC_SCHEDULE='1,16,31,46 * * * *'
export OPWEN_SESSION_KEY='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=32') }}'
export OPWEN_PASSWORD_SALT='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=16') }}'