mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
syncthing: Update Apache configuration
- 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.
This commit is contained in:
3 files changed
+25
-10
No files matched your search
@@ -1,13 +1,20 @@
|
||||
ProxyPass /syncthing/ http://localhost:8384/
|
||||
##
|
||||
## On all sites, provide syncthing web interface on a path: /syncthing
|
||||
##
|
||||
|
||||
<Location /syncthing/>
|
||||
ProxyPassReverse http://localhost:8384/
|
||||
AuthType basic
|
||||
AuthName "FreedomBox Login"
|
||||
AuthBasicProvider ldap
|
||||
AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
|
||||
AuthLDAPGroupAttribute memberUid
|
||||
AuthLDAPGroupAttributeIsDN off
|
||||
Require valid-user
|
||||
# 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>
|
||||
@@ -0,0 +1,6 @@
|
||||
AuthType basic
|
||||
AuthName "FreedomBox Login"
|
||||
AuthBasicProvider ldap
|
||||
AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
|
||||
AuthLDAPGroupAttribute memberUid
|
||||
AuthLDAPGroupAttributeIsDN off
|
||||
Reference in new issue
Block a user