Skip to content

Commit

Permalink
Disable uploads using cgimap
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 17, 2023
1 parent ffe2d5b commit b900baa
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 @@ -36,10 +36,10 @@
RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P]
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]
RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.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]
# RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P]

# Relax Apache security settings
<Directory /var/www/public>
Expand Down

0 comments on commit b900baa

Please sign in to comment.