{"html_url": "https://github.com/simonw/datasette/issues/1524#issuecomment-974725814", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1524", "id": 974725814, "node_id": "IC_kwDOBm6k_c46GSK2", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-11-20T23:24:01Z", "updated_at": "2021-11-20T23:24:01Z", "author_association": "OWNER", "body": "I noticed that `http://datasette-apache-proxy-demo.datasette.io/` wasn't redirecting to `https` so I built a new plugin: https://github.com/simonw/datasette-redirect-to-https\r\n```\r\n% curl -i 'http://datasette-apache-proxy-demo.datasette.io/prefix/fixtures/no_primary_key' \r\nHTTP/1.1 301 Moved Permanently\r\ndate: Sat, 20 Nov 2021 23:22:50 GMT\r\nserver: Fly/51d150d (2021-11-19)\r\nlocation: https://datasette-apache-proxy-demo.datasette.io/fixtures/no_primary_key\r\nx-proxied-by: Apache2 Debian\r\ntransfer-encoding: chunked\r\nvia: 1.1 fly.io\r\nfly-request-id: 01FMZTHTHVPC8BZY0625D7JV4B\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059219106, "label": "Improve Apache proxy documentation, link to demo"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1524#issuecomment-974721652", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1524", "id": 974721652, "node_id": "IC_kwDOBm6k_c46GRJ0", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-11-20T22:41:03Z", "updated_at": "2021-11-20T22:41:03Z", "author_association": "OWNER", "body": "New TIL: https://til.simonwillison.net/fly/custom-subdomain-fly", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059219106, "label": "Improve Apache proxy documentation, link to demo"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1524#issuecomment-974707878", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1524", "id": 974707878, "node_id": "IC_kwDOBm6k_c46GNym", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-11-20T20:34:51Z", "updated_at": "2021-11-20T20:38:29Z", "author_association": "OWNER", "body": "I pointed `CNAME` of `datasette-apache-proxy-demo.datasette.io` at `datasette-apache-proxy-demo.fly.dev.` using Vercel DNS:\r\n\r\n\"image\"\r\n\r\nThen I asked Fly to issue a LetsEncrypt certificate for that:\r\n\r\n```\r\n% flyctl certs create datasette-apache-proxy-demo.datasette.io\r\n# About 53 seconds later:\r\n% flyctl certs show datasette-apache-proxy-demo.datasette.io\r\nThe certificate for datasette-apache-proxy-demo.datasette.io has been issued.\r\n\r\nHostname = datasette-apache-proxy-demo.datasette.io\r\n\r\nDNS Provider = constellix\r\n\r\nCertificate Authority = Let's Encrypt\r\n\r\nIssued = ecdsa,rsa\r\n\r\nAdded to App = 53 seconds ago\r\n\r\nSource = fly\r\n```\r\nhttps://datasette-apache-proxy-demo.datasette.io/ works now - I'll use that in the documentation.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059219106, "label": "Improve Apache proxy documentation, link to demo"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1524#issuecomment-974704254", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1524", "id": 974704254, "node_id": "IC_kwDOBm6k_c46GM5-", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-11-20T20:03:51Z", "updated_at": "2021-11-20T20:22:52Z", "author_association": "OWNER", "body": "I'm also going to extract the Apache config files from https://github.com/simonw/datasette/blob/250db8192cb8aba5eb8cd301ccc2a49525bc3d24/demos/apache-proxy/Dockerfile into a separate file to make it easier to read.\r\n\r\n(The supervisor config needs to be dynamically constructed to include $DATASETTE_REF so I will leave it where it is.)", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1059219106, "label": "Improve Apache proxy documentation, link to demo"}, "performed_via_github_app": null}