openedx-vlead / vlabs-syncthing

0 stars 0 forks source link

Making Syncthing server to run on port 80 #1

Open ashay-maheshwari opened 7 years ago

ashay-maheshwari commented 7 years ago

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.

ashay-maheshwari commented 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;
    }

}