misc: document new env var
This commit is contained in:
1 parent
f32ac369e3
commit
ddb86800a0
1 file changed
+4
-1
@@ -12,7 +12,6 @@ An sleek web client for Lemmy using mono-ui, a custom design system.
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## Self-hosting
|
## Self-hosting
|
||||||
|
|
||||||
Put Photon on your own domain for easier onboarding.
|
Put Photon on your own domain for easier onboarding.
|
||||||
@@ -47,13 +46,17 @@ There you go, you now have an instance of Photon running.
|
|||||||
|
|
||||||
### Configuring default settings
|
### Configuring default settings
|
||||||
|
|
||||||
|
The most common settings you'll use are `PUBLIC_INSTANCE_URL`. Some selfhosters with `PUBLIC_SSR_ENABLED` set to true might want the instance url to be different for the server. You can use the `PUBLIC_INTERNAL_INSTANCE` variable for that.
|
||||||
|
|
||||||
The following environment variables can be set to override the default settings:
|
The following environment variables can be set to override the default settings:
|
||||||
|
|
||||||
| Variable | Values | Default Value |
|
| Variable | Values | Default Value |
|
||||||
| ------------------------------- | ------------------- | -------------------------------------- |
|
| ------------------------------- | ------------------- | -------------------------------------- |
|
||||||
| PUBLIC_INSTANCE_URL | URL | `lemmy.ml` |
|
| PUBLIC_INSTANCE_URL | URL | `lemmy.ml` |
|
||||||
|
| PUBLIC_INTERNAL_INSTANCE | URL? | null |
|
||||||
| PUBLIC_LOCK_TO_INSTANCE | `bool` | `true` if `PUBLIC_INSTANCE_URL` is set |
|
| PUBLIC_LOCK_TO_INSTANCE | `bool` | `true` if `PUBLIC_INSTANCE_URL` is set |
|
||||||
| PUBLIC_SSR_ENABLED | `bool` | `false` |
|
| PUBLIC_SSR_ENABLED | `bool` | `false` |
|
||||||
|
| | | |
|
||||||
| PUBLIC_THEME | system\|dark\|light | system |
|
| PUBLIC_THEME | system\|dark\|light | system |
|
||||||
| PUBLIC_EXPANDABLE_IMAGES | `bool` | true |
|
| PUBLIC_EXPANDABLE_IMAGES | `bool` | true |
|
||||||
| PUBLIC_MARK_READ_POSTS | `bool` | true |
|
| PUBLIC_MARK_READ_POSTS | `bool` | true |
|
||||||
|
|||||||
Reference in new issue
Block a user