ninepacker/tmpl/ninepacker-env.local

71 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2022-03-22 15:53:33 +01:00
# SYMFONY
APP_ENV=PROD
%set keyfile = %%getVar('container_path_web','') + '/var/www/html/ninepacker/.key'
APP_SECRET=%%pwdreader("",%%keyfile)
#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_AUTH=CAS
APP_ALIAS=ninepacker
APP_NAME=Ninepacker
APP_CRON=1
# BDD
DATABASE_NAME=ninepacker
DATABASE_USER=ninepacker
DATABASE_PASSWORD=tochange
%if %%getVar("ninepacker_db_mode", 'non') == "externe"
DATABASE_HOST=%%ninepacker_dbserver
%else if %%getVar("ninepacker_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("ninepacker_activer_localmail", "oui") == "oui"
MAILER_METHOD=sendmail
MAILER_URL=
%else
MAILER_METHOD=smtp
MAILER_URL=smtp://%%ninepacker_smtphost:%%ninepacker_smtpport?encryption=%%ninepacker_smtpencryption&auth_mode=%%ninepacker_smtpauthmode&username=%%ninepacker_smtpuser&password=%%ninepacker_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