-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add missing environment variables
- Loading branch information
Showing
4 changed files
with
11 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# General config | ||
API_ENDPOINT=http://localhost:6789/v1 | ||
APP_URL=http://localhost:8080 | ||
LOGS_LEVEL=verbose | ||
|
||
|
@@ -21,7 +22,8 @@ SMTP_AUTH_PASS=secret | |
SMTP_SENDER=Goodtok Info <[email protected]> | ||
|
||
# Database and encryption config | ||
# Create a new encryption key with cloack (https://cloack.47ng.com) | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=postgres | ||
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/goodtok | ||
CLOAK_ENCRYPTION_KEY=/* Generate a new key with cloack cli or https://cloak.47ng.com/ */ | ||
CLOAK_ENCRYPTION_KEY=k1.aesgcm256.MmPSvzCG9fk654bAbl30tsqq4h9d3N4F11hlue8bGAY= |
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 |
---|---|---|
|
@@ -71,7 +71,7 @@ SMTP_SENDER=Goodtok Info <[email protected]> | |
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=postgres | ||
DATABASE_URL=postgresql://postgres:postgres@postgres:5432/goodtok | ||
CLOAK_ENCRYPTION_KEY=/* Generate a new key with cloack cli or https://cloak.47ng.com/ */ | ||
CLOAK_ENCRYPTION_KEY=k1.aesgcm256.MmPSvzCG9fk654bAbl30tsqq4h9d3N4F11hlue8bGAY= | ||
``` | ||
|
||
Finally, run the following command to start the application: | ||
|
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ Next, create a `.env` file with the following content: | |
|
||
```bash | ||
# General config | ||
API_ENDPOINT=http://localhost:6789/v1 | ||
APP_URL=http://localhost:8080 | ||
LOGS_LEVEL=verbose | ||
|
||
|
@@ -44,12 +45,13 @@ SMTP_SENDER=Goodtok Info <[email protected]> | |
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=postgres | ||
DATABASE_URL=postgresql://postgres:postgres@postgres:5432/goodtok | ||
CLOAK_ENCRYPTION_KEY=/* Generate a new key with cloack cli or https://cloak.47ng.com/ */ | ||
CLOAK_ENCRYPTION_KEY=k1.aesgcm256.MmPSvzCG9fk654bAbl30tsqq4h9d3N4F11hlue8bGAY= | ||
``` | ||
|
||
Few important things to note: | ||
|
||
- Please be sure to update all secrets with your own values | ||
- The `API_ENDPOINT` must be the URL where the API will be accessible. For example, if you are running the application locally, you can use `http://localhost:6789/v1`. If you are running the application on a server, you can use, for example, `https://api.goodtok.example.com/v1` | ||
- The `APP_URL` must be the URL where the application will be accessible. For example, if you are running the application locally, you can use `http://localhost:8080`. If you are running the application on a server, you can use, for example, `https://goodtok.example.com` | ||
- The `SIGNALING_HOST` must be the URL where the signaling server will be accessible. For example, if you are running the application locally, you can use `localhost`. If you are running the application on a server, you can use, for example, `goodtok.example.com` | ||
- The `SIGNALLING_PORT` must be the port where the signaling server will be accessible. For example, if you are running the application locally, you can use `9000`. If you are running the application on a server, you can use, for example, `443` | ||
|