(backend) add public endpoint /api/v1.0/config/

Add public endpoint /api/v1.0/config/ to
share some public configuration values.
This commit is contained in:
Anthony LC
2024-11-15 09:29:07 +01:00
committed by Anthony LC
parent c1404ef904
commit 0a37a8ea6d
5 changed files with 77 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ class Base(Configuration):
You may also want to override default configuration by setting the following environment
variables:
* DJANGO_SENTRY_DSN
* SENTRY_DSN
* DB_NAME
* DB_HOST
* DB_PASSWORD
@@ -372,7 +372,7 @@ class Base(Configuration):
CORS_ALLOWED_ORIGIN_REGEXES = values.ListValue([])
# Sentry
SENTRY_DSN = values.Value(None, environ_name="SENTRY_DSN")
SENTRY_DSN = values.Value(None, environ_name="SENTRY_DSN", environ_prefix=None)
# Easy thumbnails
THUMBNAIL_EXTENSION = "webp"