{"html_url": "https://github.com/simonw/datasette/issues/333#issuecomment-405975025", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/333", "id": 405975025, "node_id": "MDEyOklzc3VlQ29tbWVudDQwNTk3NTAyNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-07-18T15:36:11Z", "updated_at": "2018-07-18T15:40:04Z", "author_association": "OWNER", "body": "A `force_https_api_urls` config option would work here - if set, Datasette will ignore the incoming protocol and always use https. The `datasette deploy now` command could then add that as an option passed to `datasette serve`.\r\n\r\nThis is the pattern which is producing incorrect URLs on Zeit Now, because the Sanic `request.url` property is not being correctly set.\r\n\r\nhttps://github.com/simonw/datasette/blob/6e37f091edec35e2706197489f54fff5d890c63c/datasette/views/table.py#L653-L655\r\n\r\nSuggested help text:\r\n\r\n> Always use https:// for URLs output as part of Datasette API responses", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 338768551, "label": "Datasette on Zeit Now returns http URLs for facet and next links"}, "performed_via_github_app": null}