mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
implement ynh_add_nginx_config
This commit is contained in:
parent
abd17eee3d
commit
e6a6063ed2
1 changed files with 1 additions and 5 deletions
|
@ -102,11 +102,7 @@ sudo apt-get install syncthing -y --force-yes
|
|||
#=================================================
|
||||
ynh_print_info "Configuring nginx web server..."
|
||||
|
||||
# Configure Nginx
|
||||
sed -i "s@PATHTOCHANGE@$path_url@g" ../conf/nginx.conf
|
||||
sed -i "s@PORTTOCHANGE@$gui_port@g" ../conf/nginx.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/syncthing.conf
|
||||
|
||||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config "gui_port"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue