Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make OSM tile access be over HTTPS #518

Merged
merged 1 commit into from
Aug 1, 2016
Merged

Conversation

ian-ross
Copy link
Contributor

@ian-ross ian-ross commented Aug 1, 2016

Proposed changes in this pull request

Change the URL for the OSM tile server in the default settings to be an HTTPS URL instead of HTTP. Add code to the development and Travis settings to make these environments still use HTTP URLs for OSM tiles. (Rationale: @amplifi has now set up HTTPS on our production and production-like environments, and loading OSM tiles from the HTTP servers thus triggers a "page has insecure content" warning in the browser. This change fixes that. However, in development and staging, we use the Squid web cache to make sure that we only hit the OSM servers once for each tile that we need. This is particularly important during functional testing, because we experienced multiple intermittent errors in the past because of throttling of requests on the OSM end. Caching HTTPS requests appears to be quite a bit more complicated than caching HTTP requests, so requiring the use of HTTP URLs in the development and Travis environments is the simplest way to keep everything working.)

When should this PR be merged

I think this can be merged right away.

Risks

Few/none.

Follow up actions

None.

@ian-ross ian-ross force-pushed the bugfix/https-for-osm-tiles branch 2 times, most recently from 184480f to e6766eb Compare August 1, 2016 17:47
Keep on using HTTP for OSM in development to make Squid caching of tiles
easy for functional testing.
@ian-ross ian-ross force-pushed the bugfix/https-for-osm-tiles branch from e6766eb to ddaee55 Compare August 1, 2016 17:50
@oliverroick oliverroick merged commit 72897d5 into master Aug 1, 2016
@oliverroick oliverroick deleted the bugfix/https-for-osm-tiles branch August 1, 2016 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants