From 5db5d9c2bd31f85123405bcd4cadefb62a80c249 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 14 Jul 2019 13:50:36 +0000 Subject: [PATCH] Update page 'Configuration' --- Configuration.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Configuration.md b/Configuration.md index 095e705..609ab1a 100644 --- a/Configuration.md +++ b/Configuration.md @@ -4,6 +4,7 @@ located at /srv/pandora/pandora/local_settings.py * your database connection, i.e.: +``` DATABASES = { 'default': { 'NAME': 'pandora', @@ -12,40 +13,57 @@ located at /srv/pandora/pandora/local_settings.py 'PASSWORD': '', } } +``` + * celery settings +``` BROKER_PORT = 5672 BROKER_USER = "pandora" BROKER_PASSWORD = "" BROKER_VHOST = "/pandora" +``` + * location of site.jsonc +``` SITE_CONFIG = '/srv/pandora/pandora/SITENAME.jsonc' +``` * use an external data service, i.e.: - DATA_SERVICE = 'https://data.0xdb.org/api/' +``` +DATA_SERVICE = 'https://data.0xdb.org/api/' +``` * webserver integration: * * nginx: +``` XACCELREDIRECT = True - +``` + * apache: +``` XSENDFILE = True +``` * serve videos from other domain. to avoid some issues with browsers or for other reasons you might want to use another domain for your videos. several variables are expanded from the prefix: {uid}, {uid42}, {id}, {part} +``` VIDEO_PREFIX = "//video{uid}.pad.ma" SESSION_COOKIE_DOMAIN = ".pad.ma" +``` * enable debug output in http responds, otherwise a traceback will be available in Debug->View Logs... for admins +``` DEBUG=False - +``` + ## config.jsonc look at config.0xdb.jsonc, config.pandora.jsonc and config.padma.jsonc to get an idea of available options for now.