first commit
This commit is contained in:
20
tmpl/ninegitea-apache.conf
Normal file
20
tmpl/ninegitea-apache.conf
Normal file
@ -0,0 +1,20 @@
|
||||
Alias /ninegitea /var/www/html/ninegitea/public
|
||||
|
||||
<Directory "/var/www/html/ninegitea/public" >
|
||||
AllowOverride All
|
||||
Order Allow,Deny
|
||||
Allow from All
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
php_admin_flag allow_url_fopen On
|
||||
</Directory>
|
||||
|
||||
# Pour activer un serveur websocket sur l'application
|
||||
# Attention choisir un port libre dans
|
||||
# 5546 = ninegitea
|
||||
# 5556 = ninegate
|
||||
# 5566 = nineboard
|
||||
# 5576 = nineschool
|
||||
# 5586 = ninesurvey
|
||||
# 5588 = ninegitea
|
||||
ProxyPass "/wssninegitea" "ws://%%adresse_ip_eth0:5588" retry=0 keepalive=On
|
||||
ProxyPassReverse "/wssninegitea" "ws://%%adresse_ip_eth0:5588" retry=0
|
39
tmpl/ninegitea-db.yml
Normal file
39
tmpl/ninegitea-db.yml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
%set dmode = %%getVar('ninegitea_db_mode','non')
|
||||
%if %%dmode == "externe"
|
||||
dbhost: %%ninegitea_dbserver
|
||||
dbport: %%ninegitea_dbport
|
||||
dbroot: %%ninegitea_dbuser
|
||||
dbrootpwd: %%ninegitea_dbpass
|
||||
%else if %%dmode == "local"
|
||||
dbhost: 127.0.0.1
|
||||
%end if
|
||||
dbtype: mysql
|
||||
dbname: ninegitea
|
||||
dbuser: ninegitea
|
||||
dbpass: "changeme"
|
||||
%set allow_hosts = %%getVar('ninegitea_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/ninegitea/gen/ninegitea-create-0.sql"
|
||||
|
||||
%set cnt_prefix = %%getVar('container_path_reseau', '')
|
||||
pwd_files:
|
||||
- {file: '%%cnt_prefix/var/www/html/ninegitea/.env.local',
|
||||
pattern: 'DATABASE_PASSWORD=',
|
||||
owner: 'root:www-data',
|
||||
mod: '660' }
|
82
tmpl/ninegitea-env.local
Executable file
82
tmpl/ninegitea-env.local
Executable file
@ -0,0 +1,82 @@
|
||||
# SYMFONY
|
||||
APP_ENV=PROD
|
||||
APP_SECRET=%%pwdreader("","/var/www/html/ninegitea/.key")
|
||||
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
|
||||
#TRUSTED_HOSTS='^(localhost|example\.com)$'
|
||||
|
||||
|
||||
# BASIC
|
||||
APP_WEBURL=%%web_url
|
||||
APP_ALIAS=ninegitea
|
||||
APP_NAME=ninegitea
|
||||
APP_CRON=1
|
||||
|
||||
|
||||
# GITEA
|
||||
GITEA_URL=%%getVar("ninegitea_gitea_url","")
|
||||
|
||||
|
||||
# OAUTH
|
||||
OAUTH_CLIENTID=%%getVar("ninegitea_oauth_clientid","")
|
||||
OAUTH_CLIENTSECRET=%%getVar("ninegitea_oauth_clientsecret","")
|
||||
OAUTH_LOGINURL=%%getVar("ninegitea_oauth_loginurl","")
|
||||
OAUTH_LOGOUTURL=%%getVar("ninegitea_oauth_logouturl","")
|
||||
OAUTH_TOKENURL=%%getVar("ninegitea_oauth_tokenurl","")
|
||||
|
||||
|
||||
# BDD
|
||||
DATABASE_NAME=ninegitea
|
||||
DATABASE_USER=ninegitea
|
||||
DATABASE_PASSWORD=tochange
|
||||
%if %%getVar("ninegitea_db_mode", 'non') == "externe"
|
||||
DATABASE_HOST=%%ninegitea_dbserver
|
||||
%else if %%getVar("ninegitea_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
|
||||
|
||||
|
||||
# MAIL sendmail / smtp
|
||||
%if %%getVar("ninegitea_activer_localmail", "oui") == "oui"
|
||||
MAILER_METHOD=sendmail
|
||||
MAILER_URL=
|
||||
%else
|
||||
MAILER_METHOD=smtp
|
||||
MAILER_URL=smtp://%%ninegitea_smtphost:%%ninegitea_smtpport?encryption=%%ninegitea_smtpencryption&auth_mode=%%ninegitea_smtpauthmode&username=%%ninegitea_smtpuser&password=%%ninegitea_smtppwd
|
||||
%end if
|
||||
MAILER_NOREPLY=noreply@noreply.fr
|
||||
|
||||
|
||||
|
||||
# CAS
|
||||
CAS_HOST=%%eolesso_adresse
|
||||
CAS_PORT=%%eolesso_port
|
||||
CAS_PATH=%%eolesso_cas_folder
|
||||
CAS_USERNAME=username
|
||||
CAS_EMAIL=email
|
||||
CAS_LASTNAME=lastname
|
||||
CAS_FIRSTNAME=firstname
|
||||
|
||||
|
||||
# Proxy
|
||||
%if %%activer_proxy_client == 'oui'
|
||||
PROXY_USE=1
|
||||
PROXY_HOST=%%proxy_client_adresse
|
||||
PROXY_PORT=%%proxy_client_port
|
||||
%else
|
||||
PROXY_USE=0
|
||||
PROXY_HOST=
|
||||
PROXY_PORT=
|
||||
%end if
|
||||
|
||||
|
2
tmpl/ninegitea.cron
Normal file
2
tmpl/ninegitea.cron
Normal file
@ -0,0 +1,2 @@
|
||||
* * * * * root /var/www/html/ninegitea/scripts/cron.sh &>/dev/null
|
||||
* * * * * root /var/www/html/ninegitea/scripts/websocket.sh restartifdown &>/dev/null
|
Reference in New Issue
Block a user