12345678910111213141516171819202122232425262728 |
- #!/usr/bin/env bash
-
- cd /home/gpodder/gpodder
- source venv/bin/activate
-
- export DATABASE_URL=postgres://{{ gpodder_db_username }}:{{ gpodder_db_password }}@localhost:5432/{{ gpodder_db_database }}?sslmode=disable
- export DEFAULT_BASE_URL=https://{{ gpodder_subdomain }}.{{ domain }}
- export SECRET_KEY={{ gpodder_secret }}
- export MEDIA_ROOT=/data/gpodder
- export DEBUG=False
- export MAINTENANCE=False
- export STAFF_TOKEN={{ gpodder_staff_token }}
- export DEFAULT_FROM_EMAIL=noreply@{{ domain }}
- export EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
- export EMAIL_HOST={{ domain }}
- export EMAIL_PORT=587
- export EMAIL_HOST_USER=noreply@{{ domain }}
- export EMAIL_HOST_PASSWORD={{ lookup('password', secret + '/' + 'mail_noreply_password length=20 chars=ascii_lowercase,ascii_uppercase,digits') }}
- export EMAIL_USE_TLS=True
- export LOGGING_FILENAME=/home/gpodder/gpodder.log
- export LOGGING_DIR_GUNICRON=/home/gpodder/logs
- export SERVER_EMAIL=noreply@{{ domain }}
- export ADMINS="[('{{ main_user_name }}', '{{ main_user_name }}@{{ domain }}')]"
- export BROKER_URL=redis://localhost:6379/1
- export ACCOUNT_ACTIVATION_DAYS=7
- export ACTIVATION_VALID_DAYS=7
-
- "$@"
|