mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] use variable for Nginx conf file path.
This commit is contained in:
parent
200e5b12d8
commit
6bfab67ead
1 changed files with 6 additions and 5 deletions
|
@ -76,9 +76,10 @@ sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$a
|
||||||
# SSOwat Configuration
|
# SSOwat Configuration
|
||||||
sudo yunohost app setting $app skipped_uris -v "/"
|
sudo yunohost app setting $app skipped_uris -v "/"
|
||||||
|
|
||||||
# Add proxy_pass
|
# Configure Nginx
|
||||||
sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf
|
nginx_conf="../conf/nginx.conf"
|
||||||
sudo sed -i "s@YNH_EXAMPLE_PORT@$port@" ../conf/nginx.conf
|
sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" $nginx_conf
|
||||||
sudo sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" ../conf/nginx.conf
|
sudo sed -i "s@YNH_EXAMPLE_PORT@$port@" $nginx_conf
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" $nginx_conf
|
||||||
|
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
Loading…
Reference in a new issue