diff --git a/uwsgi-python/templates/apps/darlehen.j2 b/uwsgi-python/templates/apps/darlehen.j2 new file mode 100644 index 0000000000000000000000000000000000000000..aff8699dbc4386465cbdca7ae2fb7616e4de1562 --- /dev/null +++ b/uwsgi-python/templates/apps/darlehen.j2 @@ -0,0 +1,26 @@ +########## +# CONFIG # +########## + +from secret_config import secret_key as SECRET_KEY +SQLALCHEMY_DATABASE_URI = 'postgresql://{{ app_user }}:@/{{ app_db_name }}' +SQLALCHEMY_TRACK_MODIFICATIONS = False +DEBUG = False +SESSION_COOKIE_SECURE = True + +import datetime +REMEMBER_COOKIE_NAME = 'remember_token' +REMEMBER_COOKIE_DURATION = datetime.timedelta(30) +REMEMBER_COOKIE_DOMAIN = None +REMEMBER_COOKIE_PATH = '/' +REMEMBER_COOKIE_SECURE = True +REMEMBER_COOKIE_HTTPONLY = True + +LDAP_HOST = '{{app_ldap_host}}' +SESSION_TIMEOUT_DAYS = 31 + +# MAIL +MAIL_FROM = '{{ app_mail_from }}' +MAIL_TO = ['{{ app_mail_to }}'] +MAIL_SERVER = '{{app_mail_server}}' +MAIL_INTERVAL = 24 * 7 # in hours diff --git a/uwsgi-python/vars/darlehen.yml b/uwsgi-python/vars/darlehen.yml new file mode 100644 index 0000000000000000000000000000000000000000..7c2a79f147ed924ddec231b90a636661d2063ad5 --- /dev/null +++ b/uwsgi-python/vars/darlehen.yml @@ -0,0 +1,37 @@ +--- + +app_name: "darlehen" +app_user: "{{ app.app }}" +app_group: "{{ app.app }}" +app_home: "/var/www/{{ app.app }}" +app_path: "/var/www/{{ app.app }}" +app_chdir: "{{ app_path }}" +app_lang: python + +# Python specifics +app_python_version: 3 +app_venv: "/var/www/{{ app.app }}/venv/" +app_program: "app.py" +app_callable: app +app_command: "" +app_module: '' + +app_mountpoint: / + +app_db_name: 'darlehen' +app_db_type: 'postgres' + +app_deploy_key: "{{ inventory_dir }}/files/deploy-keys/{{ app.app }}" +app_git_url: "git@git.stud.rwth-aachen.de:finanzen/darlehensverwaltung.git" +app_git_version: HEAD + +app_requirements_file: requirements.txt +app_config_file: config.py +app_secret_config: true +app_secret_config_keys: [] + +app_mail_to: "finanzen@asta.rwth-aachen.de" +app_mail_from: "admin@asta.rwth-aachen.de" +app_mail_server: "mail.asta.rwth-aachen.de" + +app_ldap_host: "ldaps://ad.asta.rwth-aachen.de:636"