Skip to content

Commit

Permalink
Restore cgimap config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Sep 19, 2023
1 parent e12ddf3 commit 5ca7e58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions images/web/config/production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ======Redirect trafict to CGIMAP====
# Rules to redirect to port 81
RewriteCond %{REQUEST_URI} ^/api/0\.6/map
RewriteRule ^.*$ http://127.0.0.1:81%{REQUEST_URI} [P,L]
# Existing rewrites
RewriteRule ^0\.6/map$ - [L,H=fcgi:127.0.0.1:81]
RewriteRule ^0\.6/(nodes|ways|relations)$ - [L,H=fcgi:127.0.0.1:81]
RewriteRule ^0\.6/(way|relation)/([^/]+)/full$ - [L,H=fcgi:127.0.0.1:81]

# If no match found, fall through to port 80
RewriteCond %{REQUEST_METHOD} ^(GET|HEAD)$
RewriteRule ^0\.6/(node|way|relation)/([^/]+)$ - [L,H=fcgi:127.0.0.1:80]

# Relax Apache security settings
<Directory /var/www/public>
AllowOverride None
Expand Down
2 changes: 1 addition & 1 deletion values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ osm-seed:
enabled: true
label_key: nodegroup_type
label_value: web
replicaCount: 2
replicaCount: 1
# Set staticIp, if you are using cloudProvider=gcp
staticIp: c
serviceAnnotations:
Expand Down

0 comments on commit 5ca7e58

Please sign in to comment.