No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

home_gpodder_env.j2 1.1KB

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. cd /home/gpodder/gpodder
  3. source venv/bin/activate
  4. export DATABASE_URL=postgres://{{ gpodder_db_username }}:{{ gpodder_db_password }}@localhost:5432/{{ gpodder_db_database }}?sslmode=disable
  5. export DEFAULT_BASE_URL=https://{{ gpodder_subdomain }}.{{ domain }}
  6. export SECRET_KEY={{ gpodder_secret }}
  7. export MEDIA_ROOT=/data/gpodder
  8. export DEBUG=False
  9. export MAINTENANCE=False
  10. export STAFF_TOKEN={{ gpodder_staff_token }}
  11. export DEFAULT_FROM_EMAIL=noreply@{{ domain }}
  12. export EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
  13. export EMAIL_HOST={{ domain }}
  14. export EMAIL_PORT=587
  15. export EMAIL_HOST_USER=noreply@{{ domain }}
  16. export EMAIL_HOST_PASSWORD={{ lookup('password', secret + '/' + 'mail_noreply_password length=20 chars=ascii_lowercase,ascii_uppercase,digits') }}
  17. export EMAIL_USE_TLS=True
  18. export LOGGING_FILENAME=/home/gpodder/gpodder.log
  19. export LOGGING_DIR_GUNICRON=/home/gpodder/logs
  20. export SERVER_EMAIL=noreply@{{ domain }}
  21. export ADMINS="[('{{ main_user_name }}', '{{ main_user_name }}@{{ domain }}')]"
  22. export BROKER_URL=redis://localhost:6379/1
  23. export ACCOUNT_ACTIVATION_DAYS=7
  24. export ACTIVATION_VALID_DAYS=7
  25. "$@"