eolisation
This commit is contained in:
9
tmpl/schedule-apache.conf
Normal file
9
tmpl/schedule-apache.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
Alias /schedule /var/www/html/schedule/public
|
||||
|
||||
<Directory "/var/www/html/schedule/public" >
|
||||
AllowOverride All
|
||||
Order Allow,Deny
|
||||
Allow from All
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
php_admin_flag allow_url_fopen On
|
||||
</Directory>
|
39
tmpl/schedule-db.yml
Normal file
39
tmpl/schedule-db.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
%set dmode = %%getVar('schedule_db_mode','non')
|
||||
%if %%dmode == "externe"
|
||||
dbhost: %%schedule_dbserver
|
||||
dbport: %%schedule_dbport
|
||||
dbroot: %%schedule_dbuser
|
||||
dbrootpwd: %%schedule_dbpass
|
||||
%else if %%dmode == "local"
|
||||
dbhost: 127.0.0.1
|
||||
%end if
|
||||
dbtype: mysql
|
||||
dbname: schedule
|
||||
dbuser: schedule
|
||||
dbpass: "changeme"
|
||||
%set allow_hosts = %%getVar('schedule_allow_hosts', '')
|
||||
%if %%dmode == "local"
|
||||
client_hosts: ["127.0.0.1", "localhost" %slurp
|
||||
%else if %%dmode == "externe"
|
||||
client_hosts: ["%%adresse_ip_eth0" %slurp
|
||||
%end if
|
||||
%if %%dmode != "default"
|
||||
%if %%is_empty(%%allow_hosts)
|
||||
]
|
||||
%else
|
||||
%for %%hst in %%allow_hosts
|
||||
,"%%hst" %slurp
|
||||
%end for
|
||||
]
|
||||
%end if
|
||||
%end if
|
||||
|
||||
createscript: "/usr/share/eole/db/schedule/gen/schedule-create-0.sql"
|
||||
|
||||
%set cnt_prefix = %%getVar('container_path_reseau', '')
|
||||
pwd_files:
|
||||
- {file: '%%cnt_prefix/var/www/html/schedule/.env.local',
|
||||
pattern: 'DATABASE_PASSWORD=',
|
||||
owner: 'root:www-data',
|
||||
mod: '660' }
|
32
tmpl/schedule-env.local
Normal file
32
tmpl/schedule-env.local
Normal file
@@ -0,0 +1,32 @@
|
||||
# Basic = Redefine local
|
||||
APP_ENV=prod
|
||||
APP_SECRET=%%schedule_api_key
|
||||
APP_AUTH=CAS
|
||||
|
||||
|
||||
# Bdd = Redefine local
|
||||
DATABASE_NAME=schedule
|
||||
DATABASE_USER=schedule
|
||||
DATABASE_PASSWORD=tochange
|
||||
%if %%getVar("ninegate_db_mode", 'non') == "externe"
|
||||
DATABASE_HOST=%%ninegate_dbserver
|
||||
%else if %%getVar("ninegate_db_mode", 'non') == "default"
|
||||
%set dbhost = %%getVar('edb_host', 'non')
|
||||
%if %%dbhost == 'non' and %%mode_conteneur_actif == 'oui':
|
||||
DATABASE_HOST=%%adresse_ip_mysql
|
||||
%else
|
||||
%if %%dbhost == 'non'
|
||||
DATABASE_HOST=localhost
|
||||
%else
|
||||
DATABASE_HOST=localhost
|
||||
%end if
|
||||
%end if
|
||||
%else
|
||||
DATABASE_HOST=%%adresse_ip_mysql
|
||||
%end if
|
||||
|
||||
|
||||
# CAS = Redefine local
|
||||
CAS_HOST=%%eolesso_adresse
|
||||
CAS_PORT=%%eolesso_port
|
||||
CAS_PATH=%%eolesso_cas_folder
|
6
tmpl/schedule-proxy.sh
Executable file
6
tmpl/schedule-proxy.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Si besoin export des valeurs de HTTP_PROXY et HTTPS_PROXY
|
||||
%if %%activer_proxy_client == 'oui'
|
||||
export HTTP_PROXY="%%proxy_client_adresse:%%proxy_client_port"
|
||||
export HTTPS_PROXY="%%proxy_client_adresse:%%proxy_client_port"
|
||||
%end if
|
Reference in New Issue
Block a user