mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 20:14:57 +08:00
Move to livebookusercontent.com to avoid adblockers, closes #1844
This commit is contained in:
parent
a020ea85c5
commit
9ff9aaef86
4 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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`;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<div class="disclaimer">
|
||||
This website serves iframes for Livebook apps. See
|
||||
<a href="https://livebook.dev">livebook.dev</a>. See
|
||||
<a href="https://github.com/livebook-dev/livebook.space">source</a>.
|
||||
<a href="https://github.com/livebook-dev/livebook/tree/main/iframe">source</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue