mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
- Redirect /syncthing to /syncthing/ as the daemon does not work without a slash at the end. - Create a separate include file for LDAP authentication configuration that can be included on other app configurations.
21 lines
554 B
Plaintext
21 lines
554 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/>
|
|
ProxyPass http://localhost:8384/
|
|
|
|
Include includes/freedombox-auth-ldap.conf
|
|
Require ldap-group cn=admin,ou=groups,dc=thisbox
|
|
</Location>
|