aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2020-12-17 10:08:20 +0300
committerGravatar Hassan Abouelela <[email protected]>2020-12-17 10:09:33 +0300
commit595c19ee50e638e081d43be1c2d0d6e0830676e2 (patch)
tree6bee88e9b46d6ce22f2dc9b0dd192ff32ccadc4a
parentMerge branch 'main' into discord-webhook (diff)
Adds Frontend URL to Env
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--README.md1
-rw-r--r--backend/constants.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 671e6d5..3e38ef5 100644
--- a/README.md
+++ b/README.md
@@ -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")