mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-03-19 17:25:17 -05:00
fix: a few REVOLT_PUBLIC_URL references needed cleanup (#151)
Co-authored-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
This commit is contained in:
15
README.md
15
README.md
@@ -237,12 +237,19 @@ docker compose up -d
|
|||||||
|
|
||||||
### Custom Domain
|
### Custom Domain
|
||||||
|
|
||||||
To configure a custom domain, you will need to replace *all* instances of `local.revolt.chat` in `Revolt.toml` and `.env.web` to your chosen domain (here represented as `example.com`), like so:
|
To configure a custom domain, you can either generate a config for https by running:
|
||||||
|
|
||||||
|
```
|
||||||
|
chmod +x ./generate_config.sh
|
||||||
|
./generate_config.sh your.domain
|
||||||
|
```
|
||||||
|
|
||||||
|
Or alternatively do it manually, you will need to replace *all* instances of `local.revolt.chat` in `Revolt.toml` and `.env.web` to your chosen domain (here represented as `example.com`), like so:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
# .env.web
|
# .env.web
|
||||||
- REVOLT_PUBLIC_URL=http://local.revolt.chat/api
|
- REVOLT_PUBLIC_URL=http://local.revolt.chat/api
|
||||||
+ REVOLT_PUBLIC_URL=http://example.com
|
+ REVOLT_PUBLIC_URL=http://example.com/api
|
||||||
```
|
```
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
@@ -262,8 +269,8 @@ You will likely also want to change the protocols to enable HTTPS:
|
|||||||
|
|
||||||
```diff
|
```diff
|
||||||
# .env.web
|
# .env.web
|
||||||
- REVOLT_PUBLIC_URL=http://example.com
|
- REVOLT_PUBLIC_URL=http://example.com/api
|
||||||
+ REVOLT_PUBLIC_URL=https://example.com
|
+ REVOLT_PUBLIC_URL=https://example.com/api
|
||||||
```
|
```
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
|
|||||||
Reference in New Issue
Block a user