first commit
This commit is contained in:
9
tmpl/nineskeletor-apache.conf
Normal file
9
tmpl/nineskeletor-apache.conf
Normal file
@ -0,0 +1,9 @@
|
||||
Alias /nineskeletor /var/www/html/nineskeletor/public
|
||||
|
||||
<Directory "/var/www/html/nineskeletor/public" >
|
||||
AllowOverride All
|
||||
Order Allow,Deny
|
||||
Allow from All
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
php_admin_flag allow_url_fopen On
|
||||
</Directory>
|
39
tmpl/nineskeletor-db.yml
Normal file
39
tmpl/nineskeletor-db.yml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
%set dmode = %%getVar('nineskeletor_db_mode','non')
|
||||
%if %%dmode == "externe"
|
||||
dbhost: %%nineskeletor_dbserver
|
||||
dbport: %%nineskeletor_dbport
|
||||
dbroot: %%nineskeletor_dbuser
|
||||
dbrootpwd: %%nineskeletor_dbpass
|
||||
%else if %%dmode == "local"
|
||||
dbhost: 127.0.0.1
|
||||
%end if
|
||||
dbtype: mysql
|
||||
dbname: nineskeletor
|
||||
dbuser: nineskeletor
|
||||
dbpass: "changeme"
|
||||
%set allow_hosts = %%getVar('nineskeletor_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/nineskeletor/gen/nineskeletor-create-0.sql"
|
||||
|
||||
%set cnt_prefix = %%getVar('container_path_reseau', '')
|
||||
pwd_files:
|
||||
- {file: '%%cnt_prefix/var/www/html/nineskeletor/.env.local',
|
||||
pattern: 'DATABASE_PASSWORD=',
|
||||
owner: 'root:www-data',
|
||||
mod: '660' }
|
40
tmpl/nineskeletor-env.local
Normal file
40
tmpl/nineskeletor-env.local
Normal file
@ -0,0 +1,40 @@
|
||||
# Basic = Redefine local
|
||||
APP_ALIAS=nineskeletor
|
||||
APP_NAME=Nineskeletor
|
||||
APP_ENV=prod
|
||||
APP_SECRET=%%pwdreader("","/var/www/html/nineskeletor/.key")
|
||||
APP_AUTH=CAS
|
||||
|
||||
|
||||
# MAIL sendmail / smtp
|
||||
MAILER_METHOD=sendmail
|
||||
MAILER_URL=
|
||||
MAILER_NOREPLY=noreply@noreply.fr
|
||||
|
||||
|
||||
# Bdd = Redefine local
|
||||
DATABASE_NAME=nineskeletor
|
||||
DATABASE_USER=nineskeletor
|
||||
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/nineskeletor-proxy.sh
Executable file
6
tmpl/nineskeletor-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