-
-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add a FAQ for album sharing on self hosted instances (#1422)
- Loading branch information
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: Album sharing | ||
description: Getting album sharing to work using an self-hosted Ente | ||
--- | ||
|
||
# Is public sharing available for self-hosted instances? | ||
|
||
Yes. | ||
|
||
You'll need to run two instances of the web app, one is regular web app, but | ||
another one is the same code but running on a different origin (i.e. on a | ||
different hostname or different port). | ||
|
||
Then, you need to tell the regular web app to use your second instance to | ||
service public links. You can do this by setting the | ||
`NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT` to point to your second instance when running | ||
or building the regular web app. | ||
|
||
For more details, see | ||
[.env](https://github.com/ente-io/ente/blob/main/web/apps/photos/.env) and | ||
[.env.development](https://github.com/ente-io/ente/blob/main/web/apps/photos/.env.development). | ||
|
||
As a concrete example, assuming we have a Ente server running on | ||
`localhost:8080`, we can start two instances of the web app, passing them | ||
`NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT` that points to the origin | ||
("scheme://host[:port]") of the second "albums" instance. | ||
|
||
The first one, the normal web app | ||
|
||
```sh | ||
NEXT_PUBLIC_ENTE_ENDPOINT=http://localhost:8080 \ | ||
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=http://localhost:3002 \ | ||
yarn dev:photos | ||
``` | ||
|
||
The second one, the same code but acting as the "albums" app (the only | ||
difference is the port it is running on): | ||
|
||
```sh | ||
NEXT_PUBLIC_ENTE_ENDPOINT=http://localhost:8080 \ | ||
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=http://localhost:3002 \ | ||
yarn dev:albums | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters