left4me: add Mako templates for host.env and web.env
SECRET_KEY pulled from node metadata (set via !32_random_bytes_as_base64_for: in the node file). SESSION_COOKIE_SECURE flips to true since nginx fronts gunicorn with TLS.
This commit is contained in:
parent
6db792ce6a
commit
3afd4d60cc
2 changed files with 8 additions and 0 deletions
3
bundles/left4me/files/etc/left4me/host.env.mako
Normal file
3
bundles/left4me/files/etc/left4me/host.env.mako
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Managed by ckn-bw bundles/left4me. Local edits will be reverted.
|
||||
# Deployment units use fixed /var/lib/left4me paths; regenerate units if this changes.
|
||||
LEFT4ME_ROOT=/var/lib/left4me
|
||||
5
bundles/left4me/files/etc/left4me/web.env.mako
Normal file
5
bundles/left4me/files/etc/left4me/web.env.mako
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Managed by ckn-bw bundles/left4me. Local edits will be reverted.
|
||||
DATABASE_URL=sqlite:////var/lib/left4me/left4me.db
|
||||
SECRET_KEY=${node.metadata.get('left4me/secret_key')}
|
||||
JOB_WORKER_THREADS=${node.metadata.get('left4me/job_worker_threads')}
|
||||
SESSION_COOKIE_SECURE=true
|
||||
Loading…
Reference in a new issue