mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
searx: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - Web interface works - Web interface authentication works Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
4f0dd7733b
commit
500cfca6d4
4 files changed
+10
-1
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
<Location /searx/>
|
||||
Include includes/freedombox-single-sign-on.conf
|
||||
|
||||
<IfModule mod_auth_pubtkt.c>
|
||||
TKTAuthToken "web-search" "admin"
|
||||
</IfModule>
|
||||
|
||||
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
|
||||
</Location>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
# Redirect /searx to /searx/
|
||||
<Location ~ ^/searx$>
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_URI} ^/searx$
|
||||
RewriteRule .* /searx/ [R=301,L]
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
|
||||
<Location /searx/>
|
||||
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
|
||||
</Location>
|
||||
|
||||
|
||||
# This exclusion rule is to allow Searx to be added as a search engine in Firefox.
|
||||
<LocationMatch "^/searx/(opensearch.xml|static/themes/oscar/img/favicon.png)$">
|
||||
Require all granted
|
||||
ProxyPassMatch "unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/$1"
|
||||
</LocationMatch>
|
||||
Reference in new issue
Block a user