mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 19:49:19 +02:00
Add support for setting the musicbrainz hostname
Useful for using a local musicbrainz mirror. Fixes #471. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
This commit is contained in:
parent
3ce3451d35
commit
cb5b3be844
3 changed files with 7 additions and 0 deletions
|
@ -487,6 +487,11 @@ PROTECT_FILES_PATH = env("PROTECT_FILES_PATH", default="/_protected")
|
|||
# musicbrainz results. (value is in seconds)
|
||||
MUSICBRAINZ_CACHE_DURATION = env.int("MUSICBRAINZ_CACHE_DURATION", default=300)
|
||||
|
||||
# Use this setting to change the musicbrainz hostname, for instance to
|
||||
# use a mirror. The hostname can also contain a port number (so, e.g.,
|
||||
# "localhost:5000" is a valid name to set).
|
||||
MUSICBRAINZ_HOSTNAME = env("MUSICBRAINZ_HOSTNAME", default="musicbrainz.org")
|
||||
|
||||
# Custom Admin URL, use {% url 'admin:index' %}
|
||||
ADMIN_URL = env("DJANGO_ADMIN_URL", default="^api/admin/")
|
||||
CSRF_USE_SESSIONS = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue