Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
webservices
Commits
04fac220
Commit
04fac220
authored
May 27, 2021
by
Hinrikus Wolf
Browse files
add changes for vampir mitgliederdatenbank 2.0
parent
9b60c368
Pipeline
#3086
passed with stage
in 1 minute and 26 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
uwsgi-python/tasks/app.yml
View file @
04fac220
...
...
@@ -341,6 +341,15 @@
-
"
{{
app.app
}}"
-
"
{{
app.instance
}}"
-
name
:
ensure we have a spooler dir if needed
file
:
path
:
"
{{
app_spooler_dir
}}"
state
:
directory
owner
:
"
{{
app_user
}}"
group
:
"
{{
app_group
}}"
mode
:
'
0750'
when
:
app_spooler|default(false)
-
meta
:
flush_handlers
-
name
:
ensure the service is enabled
...
...
uwsgi-python/tasks/apps/vampir-mitglieder.yml
0 → 100644
View file @
04fac220
---
-
name
:
ensure we have a folder for invoices
file
:
path
:
"
{{
app_path}}/rechnungen"
state
:
directory
owner
:
"
{{
app_user
}}"
group
:
"
{{
app_group
}}"
mode
:
'
0750'
uwsgi-python/templates/apps/vampir-mitglieder.j2
View file @
04fac220
from secret_config import secret_key as SECRET_KEY
SQLALCHEMY_DATABASE_URI = '
my
sql://{{ app_user }}:
{{ app_db_password }}
@/{{ app_db_name }}'
SQLALCHEMY_DATABASE_URI = '
postgre
sql://{{ app_user }}:@/{{ app_db_name }}'
SQLALCHEMY_TRACK_MODIFICATIONS = False
DEBUG = False
SESSION_COOKIE_SECURE = True
BRANDING_TITLE = "{{ app_branding_title }}"
BRANDING_DESCRIPTION = """{{ app_branding_description }}"""
OVERRIDE_MAIL_DESTINATION = False
TESTING_MAILS = ["{{ app_testing_mails }}"]
MAIL_SERVER = "{{ app_mail_server }}"
MAIL_USE_TLS = True
MAIL_TIMEOUT = 10
MAIL_USE_LOCALTIME = True
NO_SPOOLER = False
uwsgi-python/templates/uwsgi.ini.j2
View file @
04fac220
...
...
@@ -17,7 +17,7 @@ cheaper-initial = 1
cheaper-step = 1
{% if app_enable_threads|default(false) %}
enable-threads =
enable-threads =
single-interpreter = true
{% endif %}
{% for option in app_uwsgi_options|default([]) %}
...
...
@@ -30,15 +30,19 @@ env = {{ env }}
{% endfor %}
{% for mule in range(app_mules|default(0)) %}
mule =
mule =
{% endfor %}
{% if app_spooler|default(false) %}
spooler = {{app_spooler_dir}}
spooler-interval = {{app_spooler_interval|default(30)}}
{% endif %}
#umask = 227
chdir = {{app_chdir}}
uid = {{app_user}}
gid = {{app_group}}
log-date =
log-4xx =
log-5xx =
log-4xx =
log-5xx =
log-x-forwarded-for =
{% if app_lang == "python" %}
{% if app_python_version == 2 %}
...
...
uwsgi-python/vars/vampir-mitglieder.yml
View file @
04fac220
...
...
@@ -17,7 +17,7 @@ app_enable_threads: false
app_uwsgi_options
:
[]
app_db_name
:
vampir
app_db_type
:
mysql
app_db_type
:
postgres
app_additional_software
:
[]
...
...
@@ -34,3 +34,9 @@ app_branding_title: "Vampir Mitgliederdatenbank"
app_branding_description
:
>
Verwaltungsinterface zur Mitgliederdatenbank des Vereins der Alumni
der Fachschaft Mathematik/Physik/Informatik an der RWTH Aachen e.V.
app_mail_server
:
"
mail.fsmpi.rwth-aachen.de"
app_testing_mails
:
"
vampir-vorstand@fsmpi.rwth-aachen.de"
app_spooler
:
true
app_spooler_dir
:
"
{{app_path}}/spooler"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment