Skip to content

Commit

Permalink
Convert various URLs to https
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 8, 2018
1 parent af13974 commit be86e48
Show file tree
Hide file tree
Showing 23 changed files with 124 additions and 124 deletions.
10 changes: 5 additions & 5 deletions CONFIGURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ After [installing](INSTALL.md) this software, you may need to carry out some of

Your installation comes with no geographic data loaded. You can either create new data using one of the editors (Potlatch 2, iD, JOSM etc) or by loading an OSM extract.

After installing but before creating any users or data, import an extract with [Osmosis](http://wiki.openstreetmap.org/wiki/Osmosis) and the [``--write-apidb``](http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--write-apidb_.28--wd.29) task.
After installing but before creating any users or data, import an extract with [Osmosis](https://wiki.openstreetmap.org/wiki/Osmosis) and the [``--write-apidb``](https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--write-apidb_.28--wd.29) task.

```
osmosis --read-pbf greater-london-latest.osm.pbf \
--write-apidb host="localhost" database="openstreetmap" \
user="openstreetmap" password="" validateSchemaVersion="no"
```

Loading an apidb database with Osmosis is about **twenty** times slower than loading the equivalent data with osm2pgsql into a rendering database. [``--log-progress``](http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--log-progress_.28--lp.29) may be desirable for status updates.
Loading an apidb database with Osmosis is about **twenty** times slower than loading the equivalent data with osm2pgsql into a rendering database. [``--log-progress``](https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--log-progress_.28--lp.29) may be desirable for status updates.

To be able to edit the data you have loaded, you will need to use this [yet-to-be-written script](https://github.com/openstreetmap/openstreetmap-website/issues/282).

Expand Down Expand Up @@ -94,7 +94,7 @@ Rails has its own log. To inspect the log, do this:
tail -f log/development.log
```

If you have more problems, please ask on the [rails-dev@openstreetmap.org mailing list](http://lists.openstreetmap.org/listinfo/rails-dev) or on the [#osm-dev IRC Channel](http://wiki.openstreetmap.org/wiki/IRC)
If you have more problems, please ask on the [rails-dev@openstreetmap.org mailing list](https://lists.openstreetmap.org/listinfo/rails-dev) or on the [#osm-dev IRC Channel](https://wiki.openstreetmap.org/wiki/IRC)

## Maintaining your installation

Expand All @@ -110,7 +110,7 @@ bundle exec rake db:migrate

## Testing on the osm dev server

For example, after developing a patch for the rails_port, you might want to demonstrate it to others or ask for comments and testing. To do this one can [set up an instance of the rails_port on the dev server in ones user directory](http://wiki.openstreetmap.org/wiki/Using_the_dev_server#Rails_Applications).
For example, after developing a patch for the rails_port, you might want to demonstrate it to others or ask for comments and testing. To do this one can [set up an instance of the rails_port on the dev server in ones user directory](https://wiki.openstreetmap.org/wiki/Using_the_dev_server#Rails_Applications).

# Contributing

Expand All @@ -124,6 +124,6 @@ If you want to deploy The Rails Port for production use, you'll need to make a f
* Passenger will, by design, use the Production environment and therefore the production database - make sure it contains the appropriate data and user accounts.
* Your production database will also need the extensions and functions installed - see [INSTALL.md](INSTALL.md)
* The included version of the map call is quite slow and eats a lot of memory. You should consider using [CGIMap](https://github.com/zerebubuth/openstreetmap-cgimap) instead.
* The included version of the GPX importer is slow and/or completely inoperable. You should consider using [the high-speed GPX importer](http://git.openstreetmap.org/gpx-import.git/).
* The included version of the GPX importer is slow and/or completely inoperable. You should consider using [the high-speed GPX importer](https://git.openstreetmap.org/gpx-import.git/).
* Make sure you precompile the production assets: `RAILS_ENV=production rake assets:precompile`
* Make sure the web server user as well as the rails user can read, write and create directories in `tmp/`.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* http://www.ruby-lang.org/ - The homepage of Ruby which has more links and some great tutorials.
* https://www.ruby-lang.org/ - The homepage of Ruby which has more links and some great tutorials.
* http://rubyonrails.org/ - The homepage of Rails, also has links and tutorials

## Coding style
Expand Down Expand Up @@ -94,6 +94,6 @@ If you have forked on GitHub then the best way to submit your patches is to
push your changes back to GitHub and then send a "pull request" on GitHub.

Otherwise you should either push your changes to a publicly visible git repository
and send the details to the [rails-dev](http://lists.openstreetmap.org/listinfo/rails-dev)
and send the details to the [rails-dev](https://lists.openstreetmap.org/listinfo/rails-dev)
list or generate patches with `git format-patch` and send them to the
[rails-dev](http://lists.openstreetmap.org/listinfo/rails-dev) list.
[rails-dev](https://lists.openstreetmap.org/listinfo/rails-dev) list.
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ For MacOSX, you will need XCode installed from the Mac App Store; OS X 10.7 (Lio

Installing PostgreSQL:

* Install Postgres.app from http://postgresapp.com/
* Install Postgres.app from https://postgresapp.com/
* Add PostgreSQL to your path, by editing your profile:

`nano ~/.profile`
Expand All @@ -80,7 +80,7 @@ and adding:

Installing other dependencies:

* Install Homebrew from http://brew.sh/
* Install Homebrew from https://brew.sh/
* Install the latest version of Ruby: `brew install ruby`
* Install ImageMagick: `brew install imagemagick`
* Install libxml2: `brew install libxml2 --with-xml2-config`
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
[![Coverage Status](https://coveralls.io/repos/openstreetmap/openstreetmap-website/badge.svg?branch=master)](https://coveralls.io/r/openstreetmap/openstreetmap-website?branch=master)

This is The Rails Port, the [Ruby on Rails](http://rubyonrails.org/)
application that powers the [OpenStreetMap](http://www.openstreetmap.org) website and API.
application that powers the [OpenStreetMap](https://www.openstreetmap.org) website and API.
The software is also known as "openstreetmap-website".

This repository consists of:

* The web site, including user accounts, diary entries, user-to-user messaging
* The XML-based editing [API](http://wiki.openstreetmap.org/wiki/API_v0.6)
* The integrated versions of the [Potlatch](http://wiki.openstreetmap.org/wiki/Potlatch_1), [Potlatch 2](http://wiki.openstreetmap.org/wiki/Potlatch_2) and [iD](http://wiki.openstreetmap.org/wiki/ID) editors
* The XML-based editing [API](https://wiki.openstreetmap.org/wiki/API_v0.6)
* The integrated versions of the [Potlatch](https://wiki.openstreetmap.org/wiki/Potlatch_1), [Potlatch 2](https://wiki.openstreetmap.org/wiki/Potlatch_2) and [iD](https://wiki.openstreetmap.org/wiki/ID) editors
* The Browse pages - a web front-end to the OpenStreetMap data
* The GPX uploads, browsing and API.

Expand All @@ -21,7 +21,7 @@ uses publicly-available services to help with development and testing.

# License

This software is licensed under the [GNU General Public License 2.0](http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt),
This software is licensed under the [GNU General Public License 2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt),
a copy of which can be found in the [LICENSE](LICENSE) file.

# Installation
Expand All @@ -36,7 +36,7 @@ We're always keen to have more developers! Pull requests are very welcome.
* Bugs are recorded in the [issue tracker](https://github.com/openstreetmap/openstreetmap-website/issues).
* Some bug reports are also found on the [OpenStreetMap trac](https://trac.openstreetmap.org/) system, in the "[website](https://trac.openstreetmap.org/query?status=new&status=assigned&status=reopened&component=website&order=priority)" and "[api](https://trac.openstreetmap.org/query?status=new&status=assigned&status=reopened&component=api&order=priority)" components
* Translation is managed by [Translatewiki](https://translatewiki.net/wiki/Translating:OpenStreetMap)
* There is a [rails-dev@openstreetmap.org](http://lists.openstreetmap.org/listinfo/rails-dev) mailing list for development discussion.
* There is a [rails-dev@openstreetmap.org](https://lists.openstreetmap.org/listinfo/rails-dev) mailing list for development discussion.
* IRC - there is the #osm-dev channel on irc.oftc.net.

More details on contributing to the code are in the [CONTRIBUTING.md](CONTRIBUTING.md) file.
Expand Down
2 changes: 1 addition & 1 deletion VAGRANT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sudo apt-get install vagrant

Other Linux distributions should have similar installation instructions using `dnf`, `pacman`, or similar.

Installers are available for Mac OS X and Windows, please see the [Vagrant project download page](http://www.vagrantup.com/downloads.html) for more information.
Installers are available for Mac OS X and Windows, please see the [Vagrant project download page](https://www.vagrantup.com/downloads.html) for more information.

Note than until there are suitable _xenial64_ [vagrant boxes](https://atlas.hashicorp.com/boxes/search?utf8=%E2%9C%93&sort=&provider=&q=xenial64) for other providers,
the only virtualization provider supported is virtualbox. You might need to install it and specify `--provider virtualbox` when setting up your environment.
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/index/directions/graphhopper.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function GraphHopperEngine(id, vehicleType) {
// GraphHopper Directions API documentation
// https://graphhopper.com/api/1/docs/routing/
return $.ajax({
url: document.location.protocol + OSM.GRAPHHOPPER_URL,
url: OSM.GRAPHHOPPER_URL,
data: {
vehicle: vehicleType,
locale: I18n.currentLocale(),
Expand Down
8 changes: 4 additions & 4 deletions app/assets/javascripts/index/directions/mapquest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// For docs, see:
// http://developer.mapquest.com/web/products/open/directions-service
// http://open.mapquestapi.com/directions/
// https://developer.mapquest.com/web/products/open/directions-service
// https://open.mapquestapi.com/directions/
// https://github.com/apmon/openstreetmap-website/blob/21edc353a4558006f0ce23f5ec3930be6a7d4c8b/app/controllers/routing_controller.rb#L153

function MapQuestEngine(id, routeType) {
Expand Down Expand Up @@ -28,15 +28,15 @@ function MapQuestEngine(id, routeType) {

return {
id: id,
creditline: '<a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="' + document.location.protocol + '//developer.mapquest.com/content/osm/mq_logo.png">',
creditline: '<a href="https://www.mapquest.com/" target="_blank">MapQuest</a> <img src="' + document.location.protocol + '//developer.mapquest.com/content/osm/mq_logo.png">',
draggable: false,

getRoute: function (points, callback) {
var from = points[0];
var to = points[points.length - 1];

return $.ajax({
url: document.location.protocol + OSM.MAPQUEST_DIRECTIONS_URL,
url: OSM.MAPQUEST_DIRECTIONS_URL,
data: {
key: OSM.MAPQUEST_KEY,
from: from.lat + "," + from.lng,
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/index/directions/osrm.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function OSRMEngine() {
return p.lng + ',' + p.lat;
}).join(';');

var req_url = document.location.protocol + OSM.OSRM_URL + encoded_coords;
var req_url = OSM.OSRM_URL + encoded_coords;

var onResponse = function (data) {
if (data.code !== 'Ok')
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/index/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ OSM.Export = function(map) {
$("#maxlat").val(bounds.getNorth().toFixed(precision));

$("#export_overpass").attr("href",
"http://overpass-api.de/api/map?bbox=" +
"https://overpass-api.de/api/map?bbox=" +
$("#minlon").val() + "," + $("#minlat").val() + "," +
$("#maxlon").val() + "," + $("#maxlat").val());
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/index/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

OSM.Query = function(map) {
var protocol = document.location.protocol === "https:" ? "https:" : "http:",
url = protocol + OSM.OVERPASS_URL,
url = OSM.OVERPASS_URL,
queryButton = $(".control-query .control-button"),
uninterestingTags = ['source', 'source_ref', 'source:ref', 'history', 'attribution', 'created_by', 'tiger:county', 'tiger:tlid', 'tiger:upload_uuid', 'KSJ2:curve_id', 'KSJ2:lat', 'KSJ2:lon', 'KSJ2:coordinate', 'KSJ2:filename', 'note:ja'],
marker;
Expand Down
8 changes: 4 additions & 4 deletions app/assets/javascripts/leaflet.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ L.OSM.Map = L.Map.extend({
L.Map.prototype.initialize.call(this, id, options);

var copyright = I18n.t('javascripts.map.copyright', {copyright_url: '/copyright'});
var donate = I18n.t('javascripts.map.donate_link_text', {donate_url: 'http://donate.openstreetmap.org'});
var donate = I18n.t('javascripts.map.donate_link_text', {donate_url: 'https://donate.openstreetmap.org'});

this.baseLayers = [];

Expand All @@ -27,15 +27,15 @@ L.OSM.Map = L.Map.extend({

if (OSM.THUNDERFOREST_KEY) {
this.baseLayers.push(new L.OSM.CycleMap({
attribution: copyright + ". Tiles courtesy of <a href='http://www.thunderforest.com/' target='_blank'>Andy Allan</a>",
attribution: copyright + ". Tiles courtesy of <a href='https://www.thunderforest.com/' target='_blank'>Andy Allan</a>",
apikey: OSM.THUNDERFOREST_KEY,
code: "C",
keyid: "cyclemap",
name: I18n.t("javascripts.map.base.cycle_map")
}));

this.baseLayers.push(new L.OSM.TransportMap({
attribution: copyright + ". Tiles courtesy of <a href='http://www.thunderforest.com/' target='_blank'>Andy Allan</a>",
attribution: copyright + ". Tiles courtesy of <a href='https://www.thunderforest.com/' target='_blank'>Andy Allan</a>",
apikey: OSM.THUNDERFOREST_KEY,
code: "T",
keyid: "transportmap",
Expand All @@ -44,7 +44,7 @@ L.OSM.Map = L.Map.extend({
}

this.baseLayers.push(new L.OSM.HOT({
attribution: copyright + ". Tiles courtesy of <a href='http://hot.openstreetmap.org/' target='_blank'>Humanitarian OpenStreetMap Team</a>",
attribution: copyright + ". Tiles courtesy of <a href='https://www.hotosm.org/' target='_blank'>Humanitarian OpenStreetMap Team</a>",
code: "H",
keyid: "hot",
name: I18n.t("javascripts.map.base.hot")
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/geocoder_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def search_ca_postcode
@results = []

# ask geocoder.ca (note - they have a per-day limit)
response = fetch_xml("http://geocoder.ca/?geoit=XML&postal=#{escape_query(query)}")
response = fetch_xml("https://geocoder.ca/?geoit=XML&postal=#{escape_query(query)}")

# parse the response
if response.get_elements("geodata/error").empty?
Expand Down
6 changes: 3 additions & 3 deletions app/helpers/browse_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def wiki_link(type, lookup)
lookup_us = lookup.tr(" ", "_")

if page = WIKI_PAGES.dig(locale, type, lookup_us)
url = "http://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
url = "https://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
elsif page = WIKI_PAGES.dig("en", type, lookup_us)
url = "http://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
url = "https://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
end

url
Expand Down Expand Up @@ -158,7 +158,7 @@ def wikipedia_link(key, value)
end

{
:url => "http://#{lang}.wikipedia.org/wiki/#{value}?uselang=#{I18n.locale}#{encoded_section}",
:url => "https://#{lang}.wikipedia.org/wiki/#{value}?uselang=#{I18n.locale}#{encoded_section}",
:title => value + section
}
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/client_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def self.all_permissions
end

def oauth_server
@oauth_server ||= OAuth::Server.new("http://" + SERVER_URL)
@oauth_server ||= OAuth::Server.new("https://" + SERVER_URL)
end

def credentials
Expand Down
2 changes: 1 addition & 1 deletion app/views/changeset/list.atom.builder
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ atom_feed(:language => I18n.locale, :schema_date => 2009,
feed.logo image_url("mag_map-rss2.0.png")

feed.rights :type => "xhtml" do |xhtml|
xhtml.a :href => "http://creativecommons.org/licenses/by-sa/2.0/" do |a|
xhtml.a :href => "https://creativecommons.org/licenses/by-sa/2.0/" do |a|
a.img :src => image_url("cc_button.png"), :alt => "CC by-sa 2.0"
end
end
Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/map.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
<div class="close-wrap"><span class="icon close"></span></div>
<p><%= t 'layouts.intro_text' %></p>
<p><%= t 'layouts.partners_html',
:ucl => link_to(t('layouts.partners_ucl'), "http://www.ucl.ac.uk"),
:ic => link_to(t('layouts.partners_ic'), "http://www.imperial.ac.uk/"),
:bytemark => link_to(t('layouts.partners_bytemark'), "http://www.bytemark.co.uk"),
:ucl => link_to(t('layouts.partners_ucl'), "https://www.ucl.ac.uk"),
:ic => link_to(t('layouts.partners_ic'), "https://www.imperial.ac.uk/"),
:bytemark => link_to(t('layouts.partners_bytemark'), "https://www.bytemark.co.uk"),
:partners => link_to(t('layouts.partners_partners'), "https://hardware.openstreetmap.org/thanks/") %>
</p>
<a class="button learn-more" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
Expand Down
4 changes: 2 additions & 2 deletions app/views/oauth_clients/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<% end %>
<h3><%= t'oauth_clients.index.my_apps' %></h3>
<% if @client_applications.empty? %>
<p><%= raw(t('oauth_clients.index.no_apps', :oauth => "<a href=\"http://oauth.net\">OAuth</a>")) %></p>
<p><%= raw(t('oauth_clients.index.no_apps', :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p>
<% else %>
<p><%= t'oauth_clients.index.registered_apps' %></p>
<% @client_applications.each do |client|%>
Expand All @@ -33,4 +33,4 @@
<% end %>
<% end %>
<% end %>
<h3><%= link_to t('oauth_clients.index.register_new'), :action => :new %></h3>
<h3><%= link_to t('oauth_clients.index.register_new'), :action => :new %></h3>
6 changes: 3 additions & 3 deletions app/views/site/about.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<div class='section' id='partners'>
<h2><div class='icon partners'></div><%= t "about_page.partners_title" %></h2>
<p><%= t 'layouts.partners_html',
:ucl => link_to(t('layouts.partners_ucl'), "http://www.ucl.ac.uk"),
:ic => link_to(t('layouts.partners_ic'), "http://www.imperial.ac.uk/"),
:bytemark => link_to(t('layouts.partners_bytemark'), "http://www.bytemark.co.uk"),
:ucl => link_to(t('layouts.partners_ucl'), "https://www.ucl.ac.uk"),
:ic => link_to(t('layouts.partners_ic'), "https://www.imperial.ac.uk/"),
:bytemark => link_to(t('layouts.partners_bytemark'), "https://www.bytemark.co.uk"),
:partners => link_to(t('layouts.partners_partners'), "https://hardware.openstreetmap.org/thanks/") %>
</p>
</div>
Expand Down
8 changes: 4 additions & 4 deletions app/views/site/export.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
</div>

<dl class="inner12">
<dt><a id="export_overpass" href="http://overpass-api.de/api/map?bbox="><%= t'export.start.too_large.overpass.title' %></a></dt>
<dt><a id="export_overpass" href="https://overpass-api.de/api/map?bbox="><%= t'export.start.too_large.overpass.title' %></a></dt>
<dd><%= t'export.start.too_large.overpass.description' %></dd>

<dt><a href="http://planet.openstreetmap.org/"><%= t'export.start.too_large.planet.title' %></a></dt>
<dt><a href="https://planet.openstreetmap.org/"><%= t'export.start.too_large.planet.title' %></a></dt>
<dd><%= t'export.start.too_large.planet.description' %></dd>

<dt><a href="http://download.geofabrik.de/"><%= t'export.start.too_large.geofabrik.title' %></a></dt>
<dt><a href="https://download.geofabrik.de/"><%= t'export.start.too_large.geofabrik.title' %></a></dt>
<dd><%= t'export.start.too_large.geofabrik.description' %></dd>

<dt><a href="http://wiki.openstreetmap.org/wiki/Download"><%= t'export.start.too_large.other.title' %></a></dt>
<dt><a href="https://wiki.openstreetmap.org/wiki/Download"><%= t'export.start.too_large.other.title' %></a></dt>
<dd><%= t'export.start.too_large.other.description' %></dd>
</dl>
<% end %>
4 changes: 2 additions & 2 deletions app/views/user/terms.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
<div class="deemphasize">
<p id="contributorGuidance">
<%= raw t 'user.terms.guidance',
:summary => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary',
:translations => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %>
:summary => 'https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary',
:translations => 'https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %>
</p>
</div>
</div>
Expand Down
Loading

0 comments on commit be86e48

Please sign in to comment.