thomersch / openstreetmap-calendar

osmcal, a Collaborative Calendar for OpenStreetMap-related Events
https://osmcal.org
Apache License 2.0
33 stars 9 forks source link

Links do not use HTTPS in API result #27

Closed jbelien closed 4 years ago

jbelien commented 4 years ago

When I fetch https://osmcal.org/api/v1/events/, I get

{
  "name": "Online OpenStreetMap Foundation public board meeting",
  "url": "http://osmcal.org/event/235/",
  "date": {
    "human": "21st May 17:00", 
    "whole_day": false, 
    "start": "2020-05-21 17:00:00"
  },
  "location": {
    "short": null, 
    "detailed": null
  }
}

All the url links are using HTTP despite the fact I'm fetching HTTPS.

thomersch commented 4 years ago

Oh, yeah, damn… this looks like some issue with the reverse proxy configuration. Gonna look into it.

thomersch commented 4 years ago

Fixed :)

Because of my peculiar setup, which layers nginx on nginx, the first one was writing https into X-Forwarded-Proto and the second was overwriting this with http.