mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
25 lines
602 B
Plaintext
25 lines
602 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>
|