SyncThing web directory


I’ve just started using syncthing and I really enjoy what it can do for me. Right now, I host all my webapps/sites behind an apache proxy redirect server so I only need one port open on my router to access all my webapps. I know how to do this when each webapp is allowed to have its own web root directory, is this possible for syncthing? Instead of connecting on ip:port is there a way to enable it to work on ip:port/syncthing? That would be great. Thanks

Sure…just set it up like your other webapps and forward whatever listening port for web GUI with your proxy. I have my instance behind an nginx proxy (to a subdomain, but same idea) You’ll still need to forward port 22000 somehow or make sure it’s allowed through the firewall, depending on your setup.


I am able to change the webdir in all my other apps, so they run on ip:port/webapp instead of just ip:port. I don’t know enough about apache redirect to fix this… if it is just running on ip:port and i add the proxypass rules as i have previously, I just get a broken webpage (like below).

I added this to httpd.conf Location /st> ProxyPass htp:// ProxyPassReverse htp:// /Location>

For some reason it works for other apps when I can add a webdir to the app, like this Location /st> ProxyPass htp:// ProxyPassReverse htp:// /Location>

edit: quote messes it up a bit so as copy now.

I use a .htaccess file in the folder syncthing in my webroot

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteRule ^(.*) http://localhost:8080/$1 [P] #replace 8080 if you have another port

this als redirects from http to https to make sure the connection is secure

Thank you, I will try that later tonight when I get a chance :slight_smile: