Skip to content

Commit

Permalink
Add auth for cgimap
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Oct 10, 2023
1 parent c93172f commit 7daa88f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 96 deletions.
1 change: 0 additions & 1 deletion images/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ RUN chown -R www-data: $workdir

# Add settings
ADD config/settings.yml $workdir/config/
# ADD config/lighttpd.conf /etc/lighttpd/lighttpd.conf

COPY start.sh $workdir/

Expand Down
95 changes: 0 additions & 95 deletions images/web/config/lighttpd.conf

This file was deleted.

4 changes: 4 additions & 0 deletions images/web/config/production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

<Location />
CGIPassAuth On
</Location>

# ======Proxying traffic to CGImap====
RewriteRule ^/api/0\.6/map(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P]
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
Expand Down

0 comments on commit 7daa88f

Please sign in to comment.