mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 22:52:26 +00:00
Fix l'url dans le fichier de config
This commit is contained in:
parent
1e432e7f1a
commit
8f2e2941b5
2 changed files with 4 additions and 2 deletions
|
@ -272,6 +272,8 @@ is_tls=$(dialog --clear \
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
sed -i 's/URL_SERVER/'"$url_server"'/g' re2o/settings_local.py
|
||||||
|
|
||||||
|
|
||||||
if [ $web_serveur == 1 ]
|
if [ $web_serveur == 1 ]
|
||||||
then
|
then
|
||||||
|
@ -283,7 +285,7 @@ cp install_utils/apache2/re2o-tls.conf /etc/apache2/sites-available/re2o.conf
|
||||||
apt-get -y install certbot
|
apt-get -y install certbot
|
||||||
apt-get -y install python-certbot-apache
|
apt-get -y install python-certbot-apache
|
||||||
certbot certonly --rsa-key-size 4096 --apache -d $url_server
|
certbot certonly --rsa-key-size 4096 --apache -d $url_server
|
||||||
sed -i 's/LE_PATH/'"$url_server"'/g' /etc/apache2/sites-available/re2o-tls.conf
|
sed -i 's/LE_PATH/'"$url_server"'/g' /etc/apache2/sites-available/re2o.conf
|
||||||
else
|
else
|
||||||
cp install_utils/apache2/re2o.conf /etc/apache2/sites-available/re2o.conf
|
cp install_utils/apache2/re2o.conf /etc/apache2/sites-available/re2o.conf
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -32,7 +32,7 @@ ADMINS = [('Example', 'rezo-admin@example.org')]
|
||||||
SERVER_EMAIL = 'no-reply@example.org'
|
SERVER_EMAIL = 'no-reply@example.org'
|
||||||
|
|
||||||
# Obligatoire, liste des host autorisés
|
# Obligatoire, liste des host autorisés
|
||||||
ALLOWED_HOSTS = ['test.example.org']
|
ALLOWED_HOSTS = ['URL_SERVER']
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
|
|
Loading…
Reference in a new issue