From 595c19ee50e638e081d43be1c2d0d6e0830676e2 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> Date: Thu, 17 Dec 2020 10:08:20 +0300 Subject: Adds Frontend URL to Env Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> --- README.md | 1 + backend/constants.py | 1 + 2 files changed, 2 insertions(+) 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") -- cgit v1.2.3