mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
configure nginx port according to port defined in install script
This commit is contained in:
parent
b0bde1bf07
commit
24b52f8207
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
location PATHTOCHANGE/ {
|
location PATHTOCHANGE/ {
|
||||||
proxy_pass http://127.0.0.1:8080/;
|
proxy_pass http://127.0.0.1:PORTTOCHANGE/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ sudo service syncthing start
|
||||||
|
|
||||||
# Configure Nginx and reload
|
# Configure Nginx and reload
|
||||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
|
sed -i "s@PORTTOCHANGE@$syncUIport@g" ../conf/nginx.conf
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/syncthing.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/syncthing.conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
echo $?
|
echo $?
|
||||||
|
|
Loading…
Add table
Reference in a new issue