aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")