Open ashay-maheshwari opened 7 years ago
Use the configuration below in /etc/nginx/sites-enabled/default
upstream backend {
server <domain-name>:8080 ;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
proxy_pass http://backend;
}
}
Syncthing server by default runs on port 8384. This is because it does not use, a standard web server as a proxy.
Using nginx as a proxy, configure syncthing to run on port 80.