nbenedek 63278f0bcd
rssbridge: add option to allow public access
These modifications are copied after the wordpress
public access configurator.

Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-10-24 12:02:10 -07:00

28 lines
954 B
Plaintext

##
## On all sites, provide RSS-Bridge on a default path: /rss-bridge
## Allow valid LDAP users from groups 'feed-reader' and 'admin'.
## Allow public access if 'is_public' file exists.
##
Alias /rss-bridge /usr/share/rss-bridge
<Location /rss-bridge>
<IfFile !/etc/rss-bridge/is_public>
<If "%{QUERY_STRING} =~ /format=[^H]/">
# Formats: Atom, Json, Mrss and Plaintext
Include includes/freedombox-auth-ldap.conf
Require ldap-group cn=admin,ou=groups,dc=thisbox
Require ldap-group cn=feed-reader,ou=groups,dc=thisbox
</If>
<Else>
# Formats: Html and all other pages
Include includes/freedombox-single-sign-on.conf
<IfModule mod_auth_pubtkt.c>
TKTAuthToken "feed-reader" "admin"
</IfModule>
</Else>
</IfFile>
<IfFile /etc/rss-bridge/is_public>
Require all granted
</IfFile>
</Location>