diff options
author | 2020-12-17 10:08:20 +0300 | |
---|---|---|
committer | 2020-12-17 10:09:33 +0300 | |
commit | 595c19ee50e638e081d43be1c2d0d6e0830676e2 (patch) | |
tree | 6bee88e9b46d6ce22f2dc9b0dd192ff32ccadc4a | |
parent | Merge branch 'main' into discord-webhook (diff) |
Adds Frontend URL to Env
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | backend/constants.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -26,6 +26,7 @@ You can also run forms-backend manually on the host. #### Environment variables Create a `.env` file with the same contents as the Docker section above and the following new variables: +- `FRONTEND_URL`: Forms frontend URL. - `DATABASE_URL`: MongoDB instance URI, in format `mongodb://(username):(password)@(database IP or domain):(port)`. - `MONGO_DB`: MongoDB database name, defaults to `pydis_forms`. diff --git a/backend/constants.py b/backend/constants.py index e733e53..11a14ef 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -6,6 +6,7 @@ import binascii # noqa from enum import Enum # noqa +FRONTEND_URL = os.getenv("FRONTEND_URL", "https://forms.pythondiscord.com") DATABASE_URL = os.getenv("DATABASE_URL") MONGO_DATABASE = os.getenv("MONGO_DATABASE", "pydis_forms") |