aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/constants.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 5c0f11fe5..152861367 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -27,11 +27,10 @@ CLICKUP_TEAM = 754996
# URLs
DEPLOY_URL = os.environ.get("DEPLOY_URL")
STATUS_URL = os.environ.get("STATUS_URL")
-# SITE_URL = os.environ.get("SERVER_NAME", "pythondiscord.local:8080") # This needs an environment variable
-SITE_URL = 'pythondiscord.com'
-SITE_PROTOCOL = 'http' if 'local' in SITE_URL else 'https'
-SITE_API_USER_URL = f"{SITE_PROTOCOL}://api.{SITE_URL}/user"
-SITE_API_TAGS_URL = f"{SITE_PROTOCOL}://api.{SITE_URL}/tags"
+API_URL = os.environ.get("API_URL", "pythondiscord.local:8080")
+SITE_PROTOCOL = 'http' if 'local' in API_URL else 'https'
+SITE_API_USER_URL = f"{SITE_PROTOCOL}://{API_URL}/user"
+SITE_API_TAGS_URL = f"{SITE_PROTOCOL}://{API_URL}/tags"
GITHUB_URL_BOT = "https://github.com/discord-python/bot"
BOT_AVATAR_URL = "https://raw.githubusercontent.com/discord-python/branding/master/logos/logo_circle.png"