Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
webservices
Commits
a41a84b2
Commit
a41a84b2
authored
4 years ago
by
Simon Stachowiak
Browse files
Options
Downloads
Patches
Plain Diff
uwsgi-python: added darlehen system config
parent
8f38aec1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
uwsgi-python/templates/apps/darlehen.j2
+26
-0
26 additions, 0 deletions
uwsgi-python/templates/apps/darlehen.j2
uwsgi-python/vars/darlehen.yml
+37
-0
37 additions, 0 deletions
uwsgi-python/vars/darlehen.yml
with
63 additions
and
0 deletions
uwsgi-python/templates/apps/darlehen.j2
0 → 100644
+
26
−
0
View file @
a41a84b2
##########
# 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
This diff is collapsed.
Click to expand it.
uwsgi-python/vars/darlehen.yml
0 → 100644
+
37
−
0
View file @
a41a84b2
---
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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment