FreedomBox/data/etc/apache2/conf-available/syncthing-plinth.conf
Aakanksha Saini 5ec7f49c8b
syncthing: Restrict administration to users in group syncthing
- Add syncthing group
- Add validation in syncthing-plinth configuration

* Tested on UI

Signed-off-by: Aakanksha Saini <aakanksa@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-01-15 17:51:30 +05:30

25 lines
598 B
Plaintext

##
## On all sites, provide syncthing web interface on a path: /syncthing
##
# Redirect /syncthing to /syncthing/ as the Syncthing server does not
# work without a slash at the end.
<Location /syncthing>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/syncthing$
RewriteRule .* /syncthing/ [R=301,L]
</IfModule>
</Location>
<Location /syncthing/>
Include includes/freedombox-single-sign-on.conf
ProxyPass http://localhost:8384/
<IfModule mod_auth_pubtkt.c>
TKTAuthToken "admin" "syncthing"
</IfModule>
</Location>