Improve cloud-init (append & env var)

master
pictuga 2021-12-25 11:02:27 +01:00
parent 7751792942
commit 3bcb8db974
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ packages:
write_files:
- path: /etc/environment
append: true
content: |
DEBUG=1
CACHE=diskcache
@ -170,6 +171,7 @@ write_files:
gunicorn --bind 0.0.0.0:${PORT:-8000} --preload --access-logfile - --daemon morss
runcmd:
- source /etc/environment
- update-ca-certificates
- iptables -I INPUT 6 -m state --state NEW -p tcp --dport ${PORT:-8000} -j ACCEPT
- netfilter-persistent save