From 9ff9aaef86a9037c60c111692d4dbb2812549aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 4 Apr 2023 00:03:14 +0200 Subject: [PATCH] Move to livebookusercontent.com to avoid adblockers, closes #1844 --- README.md | 2 +- assets/js/hooks/js_view/iframe.js | 4 ++-- iframe/README.md | 2 +- iframe/priv/static/index.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fce53240c..cc89fbc50 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ The following environment variables configure Livebook: * LIVEBOOK_IFRAME_URL - sets the URL that Livebook loads iframes from. By default iframes are loaded from local LIVEBOOK_IFRAME_PORT when accessing - Livebook over http:// and from https://livebook.space when accessing over https://. + Livebook over http:// and from https://livebookusercontent.com when accessing over https://. * LIVEBOOK_IP - sets the ip address to start the web application on. Must be a valid IPv4 or IPv6 address. diff --git a/assets/js/hooks/js_view/iframe.js b/assets/js/hooks/js_view/iframe.js index 5b1c82454..dc0d262dc 100644 --- a/assets/js/hooks/js_view/iframe.js +++ b/assets/js/hooks/js_view/iframe.js @@ -15,7 +15,7 @@ import { sha256Base64 } from "../../lib/utils"; // block asset requests from the https:// iframe to http:// Livebook. // However, external http:// content is not considered a secure context (3), // which implies no access to user media. Therefore, instead of using -// http://livebook.space we use another localhost endpoint. Note that +// http://livebookusercontent.com we use another localhost endpoint. Note that // this endpoint has a different port than the Livebook web app, that's // because we need separate origins, as outlined above. // @@ -48,7 +48,7 @@ function getIframeUrl(iframePort, iframeUrl) { } return protocol === "https:" - ? "https://livebook.space/iframe/v4.html" + ? "https://livebookusercontent.com/iframe/v4.html" : `http://${window.location.hostname}:${iframePort}/iframe/v4.html`; } diff --git a/iframe/README.md b/iframe/README.md index 7d5e65d42..4d1e5b0cc 100644 --- a/iframe/README.md +++ b/iframe/README.md @@ -2,4 +2,4 @@ Livebook executes custom JavaScript inside iframes. When running on http, they are served on a separate port. For https, they are safely served by -[livebook.space](https://livebook.space), which runs this application. +[livebookusercontent.com](livebookusercontent.com), which runs this application. diff --git a/iframe/priv/static/index.html b/iframe/priv/static/index.html index c54583c38..c4cc2365c 100644 --- a/iframe/priv/static/index.html +++ b/iframe/priv/static/index.html @@ -54,7 +54,7 @@
This website serves iframes for Livebook apps. See livebook.dev. See - source. + source.