We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd1737 commit 548a783Copy full SHA for 548a783
app.py
@@ -13,7 +13,12 @@
13
from core.models import LogEntry
14
from core.utils import get_stack_variable, authrequired, User
15
16
-prefix = os.getenv("URL_PREFIX", "/logs")
+if "URL_PREFIX" in os.environ:
17
+ print("Using the legacy config var `URL_PREFIX`, rename it to `LOG_URL_PREFIX`")
18
+ prefix = os.environ["URL_PREFIX"]
19
+else:
20
+ prefix = os.getenv("LOG_URL_PREFIX", "/logs")
21
+
22
if prefix == "NONE":
23
prefix = ""
24
env.example
@@ -1,4 +1,4 @@
1
MONGO_URI=mongodb+srv://urihere
2
-URL_PREFIX=/logs
+LOG_URL_PREFIX=/logs
3
HOST=0.0.0.0
4
PORT=8000
0 commit comments