add welco (#25249)
This commit is contained in:
parent
94adb4a896
commit
8d9d268103
|
@ -62,6 +62,12 @@ apps:
|
|||
nginx_host_pattern: '~^(.*)\-wcs\.local\.publik$'
|
||||
project_name: wcs
|
||||
server_port: 8032
|
||||
welco:
|
||||
db_name: welco
|
||||
host_pattern: "*-welco.local.publik"
|
||||
nginx_host_pattern: '~^(.*)\-welco\.local\.publik$'
|
||||
project_name: welco
|
||||
server_port: 8052
|
||||
tenants_conf:
|
||||
connexion-authentic: "connexion-authentic.local.publik"
|
||||
agent-combo: "agent-combo.local.publik"
|
||||
|
@ -73,3 +79,4 @@ tenants_conf:
|
|||
dev-chrono: "dev-chrono.local.publik"
|
||||
dev-corbo: "dev-corbo.local.publik"
|
||||
dev-bijoe: "dev-bijoe.local.publik"
|
||||
dev-welco: # disabled by default -- could be "dev-welco.local.publik"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
- chrono
|
||||
- corbo
|
||||
- bijoe
|
||||
- welco
|
||||
- hobo-agent
|
||||
- end
|
||||
vars:
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{% extends "app-settings-base.j2" %}
|
||||
|
||||
{% block app_custom_before %}
|
||||
# SAML2 authentication
|
||||
INSTALLED_APPS += ('mellon',)
|
||||
{% endblock %}
|
||||
|
||||
{% block app_custom_after %}
|
||||
# disable django-mellon autologin
|
||||
MELLON_OPENED_SESSION_COOKIE_NAME = None
|
||||
{% endblock %}
|
|
@ -20,6 +20,7 @@
|
|||
- ruby-sass
|
||||
- supervisor
|
||||
- libjs-leaflet
|
||||
- libjs-pdf
|
||||
become: yes
|
||||
|
||||
- name: "create the postgresql user named {{user}}"
|
||||
|
|
|
@ -64,6 +64,12 @@
|
|||
"title": "Statistiques"
|
||||
}},
|
||||
{% endif %}
|
||||
{% if tenants_conf['dev-welco'] %}
|
||||
{"create-welco": {
|
||||
"url": "https://{{tenants_conf['dev-welco']}}/",
|
||||
"title": "Courrier"
|
||||
}},
|
||||
{% endif %}
|
||||
{"set-theme": {
|
||||
"theme": "publik"
|
||||
}}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{% extends "std-nginx-server.j2" %}
|
||||
|
||||
{% block middle %}
|
||||
|
||||
location ~ ^/static/pdf/(.+)$ {
|
||||
alias /usr/share/javascript/pdf/$1; # libjs-pdf
|
||||
}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{% endblock %}
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
- name: source install welco
|
||||
import_tasks: install_source.yml
|
||||
vars:
|
||||
repo: "welco"
|
||||
repo_dir: "{{ src_dir }}/welco"
|
||||
|
||||
- name: welco app setup
|
||||
import_role:
|
||||
name: app-setup
|
||||
|
||||
- name: welco nginx setup
|
||||
import_role:
|
||||
name: nginx-setup
|
|
@ -0,0 +1,10 @@
|
|||
app_name: welco
|
||||
compile_scss: false
|
||||
compile_translations: true
|
||||
db_name: "{{apps['welco']['db_name']}}"
|
||||
manage_cmd: "{{venv_python}} {{src_dir}}/welco/manage.py"
|
||||
nginx_host_pattern: "{{apps['welco']['nginx_host_pattern']}}"
|
||||
nginx_template_name: "welco-nginx-server.j2"
|
||||
project_name: "{{apps['welco']['project_name']}}"
|
||||
server_port: "{{apps['welco']['server_port']}}"
|
||||
settings_env_var: WELCO_SETTINGS_FILE
|
|
@ -14,4 +14,5 @@ local:
|
|||
dev-chrono: "customname-chrono.local.publik"
|
||||
dev-corbo: "customname-corbo.local.publik"
|
||||
dev-bijoe: "customname-bijoe.local.publik"
|
||||
dev-welco: "customname-welco.local.publik"
|
||||
|
||||
|
|
Loading…
Reference in New Issue