dicos/99_one-frontend.xml: Début du travail sur le support HTTPS
Ajout d'une configuration nginx "basique". Ouverture des ports du firewall Création du script d'activation de la configuration nginx ref #9081 @3h
This commit is contained in:
14
posttemplate/02-nebula-nginx
Executable file
14
posttemplate/02-nebula-nginx
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
ENABLE=$(CreoleGet activer_onefrontend 'non')
|
||||
CONF_FILE='nebula.conf'
|
||||
|
||||
if [ -L /etc/nginx/sites-enabled/${CONF_FILE} ];then
|
||||
rm /etc/nginx/sites-enabled/${CONF_FILE}
|
||||
fi
|
||||
if [ -L /etc/nginx/sites-enabled/eoleapps.conf ];then
|
||||
rm /etc/nginx/sites-enabled/eoleapps.conf
|
||||
fi
|
||||
if [ "${ENABLE}" = 'oui' ];then
|
||||
ln -s /etc/nginx/sites-available/${CONF_FILE} /etc/nginx/sites-enabled/${CONF_FILE}
|
||||
fi
|
Reference in New Issue
Block a user