Skip to content

Commit

Permalink
Test cgimap reading by tasking manager - iD
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Sep 26, 2024
1 parent eea4be5 commit d2f35f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions images/web/config/production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

<Location />
# For TM, do not use cgimap auth.
<If "%{HTTP_REFERER} !~ m#https://tasks(-\w+)?\.openhistoricalmap\.org/#">
# <If "%{HTTP_REFERER} !~ m#https://tasks(-\w+)?\.openhistoricalmap\.org/#">
CGIPassAuth On
</If>
# </If>
</Location>

# ======Proxying traffic to CGImap====
Expand All @@ -38,8 +38,8 @@
RewriteRule ^/api/0\.6/(nodes|ways|relations)(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P]

# For changeset requests originating from TM, do not use cgimap.
RewriteCond %{REQUEST_METHOD} ^POST$
RewriteCond %{HTTP_REFERER} !^https://tasks(-\w+)?\.openhistoricalmap\.org/ [NC]
# RewriteCond %{REQUEST_METHOD} ^POST$
# RewriteCond %{HTTP_REFERER} !^https://tasks(-\w+)?\.openhistoricalmap\.org/ [NC]
RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P]

# Relax Apache security settings
Expand Down

0 comments on commit d2f35f3

Please sign in to comment.