first commit

This commit is contained in:
root
2020-07-01 13:32:02 +02:00
commit bbf9006076
351 changed files with 26576 additions and 0 deletions

View 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
View 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' }

View 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
View 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