You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ You may also venture on your own, adapting the following instructions to your ne
11
11
Set the following environment variables, via `.env` or your shell:
12
12
-`DOCKER_DB_ROOT_PASSWORD` will be used as the password for the database root user.
13
13
-`DATABASE_URL` is used for db connection. During development, this is `postgres://tau:tau@localhost:5432/tau`.
14
-
-`SECRET` will be used as high entropy data used for generating tokens.
14
+
-`FRONTEND_ORIGIN` will be used as an allowed [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin)for the purpose of [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS). Must be a valid URL.
15
15
16
16
Start the database with `docker compose --profile dev (up -d/down)`.
17
17
Run the migrations via sqlx-cli with `sqlx run migrate` or by other means.
@@ -22,10 +22,11 @@ Compile and run the project with `cargo`.
22
22
For deploying via docker, set the following environment variables:
23
23
-`DOCKER_DB_PASSWORD` which will be used as the password for the backend's database access user.
24
24
-`DOCKER_DB_ROOT_PASSWORD` will be used as the password for the database root user.
25
-
-`SECRET` will be used as high entropy data used for generating tokens.
25
+
-`FRONTEND_ORIGIN` will be used as an allowed [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin)for the purpose of [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS). Must be a valid URL (`http://localhost:3000` by default).
26
26
Then, run `docker compose --profile prod`.
27
27
28
28
### Optional configuration
29
+
-`SECRET` will be used as additional high entropy data used for generating tokens. By default, tau uses system entropy and the current UNIX timestamp.
29
30
-`PORT` will be used as the port the server listens on. The default is 2023.
30
31
31
32
The following example `.env` file is geared for both scenarios:
0 commit comments