FreedomBox/data/etc/apache2/conf-available/syncthing-plinth.conf
Sunil Mohan Adapa 3f57863a69
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.
2017-03-23 15:09:37 +05:30

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>