1
0
Fork 0
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:
yalh76 2019-04-14 01:17:26 +02:00
parent abd17eee3d
commit e6a6063ed2

View file

@ -102,11 +102,7 @@ sudo apt-get install syncthing -y --force-yes
#================================================= #=================================================
ynh_print_info "Configuring nginx web server..." ynh_print_info "Configuring nginx web server..."
# Configure Nginx # Create a dedicated nginx config
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
ynh_add_nginx_config "gui_port" ynh_add_nginx_config "gui_port"
#================================================= #=================================================