-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
Use force_https_urls on when deploying with Cloud Run #1178
Comments
Maybe this is a bug in |
Weird... Lines 609 to 613 in a882d67
def absolute_url(self, request, path):
url = urllib.parse.urljoin(request.url, path)
if url.startswith("http://") and self.setting("force_https_urls"):
url = "https://" + url[len("http://") :]
return url That looks like it should work. Needs more digging. |
https://latest-with-plugins.datasette.io/-/settings says |
https://latest-with-plugins.datasette.io/fixtures/sortable.json has the bug too - the |
Moving this to the Datasette repo. |
https://latest-with-plugins.datasette.io/-/asgi-scope
Note the |
Easiest fix would be for
datasette/datasette/publish/now.py Lines 59 to 63 in 07e208c
|
Deploying that change now to test it. |
Issue fixed - https://latest-with-plugins.datasette.io/github/issue_comments.Notebook?_labels=on displays the correct schemes now. I can't think of a reason anyone on Cloud Run would ever NOT want the datasette/datasette/publish/cloudrun.py Lines 105 to 110 in 97fb10c
|
Original title: datasette.absolute_url() should return https:// not http:// on Cloud Run
https://latest-with-plugins.datasette.io/github/issue_comments.Notebook?_labels=on currently provides
http://
links, which break in Observable since it won't loadhttp://
content.The text was updated successfully, but these errors were encountered: