mirror of
https://github.com/YunoHost/yunohost_demo.git
synced 2024-09-03 19:56:44 +02:00
fix nginx configuration
This commit is contained in:
parent
5eaca37494
commit
90bb324823
1 changed files with 2 additions and 2 deletions
|
@ -174,12 +174,12 @@ sed -i "s/ADMIN_EMAIL/$MAIL_ADDR/" certificateRenewer
|
|||
# And add a script to renew
|
||||
echo "#!/bin/bash
|
||||
|
||||
sudo sed -i 's@rewrite ^ https://$server_name$request_uri? permanent;@#rewrite ^ https:$//$server_name$request_uri? permanent;@' /etc/nginx/conf.d/demo.yunohost.org.conf
|
||||
sudo sed -i 's@rewrite ^ https://$server_name$request_uri? permanent;@#rewrite ^ https:$//$server_name$request_uri? permanent;@' /etc/nginx/conf.d/$server_name.conf
|
||||
sudo service nginx reload
|
||||
|
||||
sudo /etc/cron.weekly/certificateRenewer
|
||||
|
||||
sudo sed -i 's@#rewrite ^ https://$server_name$request_uri? permanent;@rewrite ^ https:$//$server_name$request_uri? permanent;@' /etc/nginx/conf.d/demo.yunohost.org.conf
|
||||
sudo sed -i 's@#rewrite ^ https://$server_name$request_uri? permanent;@rewrite ^ https:$//$server_name$request_uri? permanent;@' /etc/nginx/conf.d/$server_name.conf
|
||||
sudo service nginx reload" | tee /etc/cron.weekly/Certificate_Renewer
|
||||
|
||||
echo -e "\e[1mLe serveur est prêt à déployer les conteneurs de demo.\e[0m"
|
||||
|
|
Loading…
Reference in a new issue