/etc/apache2/conf-available/syncthing-plinth.conf is in plinth 0.24.0.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##
## 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>
|