mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
syncthing: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - Web interface works Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
f3bad4a880
commit
3d299a7b8a
3 files changed
+8
-1
No files matched your search
+24
@@ -0,0 +1,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-access"
|
||||
</IfModule>
|
||||
</Location>
|
||||
Reference in new issue
Block a user