Update page 'Configuration'

j 2019-07-14 13:50:36 +00:00
parent 64659a5c5f
commit 5db5d9c2bd

@ -4,6 +4,7 @@
located at /srv/pandora/pandora/local_settings.py located at /srv/pandora/pandora/local_settings.py
* your database connection, i.e.: * your database connection, i.e.:
```
DATABASES = { DATABASES = {
'default': { 'default': {
'NAME': 'pandora', 'NAME': 'pandora',
@ -12,39 +13,56 @@ located at /srv/pandora/pandora/local_settings.py
'PASSWORD': '', 'PASSWORD': '',
} }
} }
```
* celery settings * celery settings
```
BROKER_PORT = 5672 BROKER_PORT = 5672
BROKER_USER = "pandora" BROKER_USER = "pandora"
BROKER_PASSWORD = "" BROKER_PASSWORD = ""
BROKER_VHOST = "/pandora" BROKER_VHOST = "/pandora"
```
* location of site.jsonc * location of site.jsonc
```
SITE_CONFIG = '/srv/pandora/pandora/SITENAME.jsonc' SITE_CONFIG = '/srv/pandora/pandora/SITENAME.jsonc'
```
* use an external data service, i.e.: * use an external data service, i.e.:
```
DATA_SERVICE = 'https://data.0xdb.org/api/' DATA_SERVICE = 'https://data.0xdb.org/api/'
```
* webserver integration: * webserver integration:
* *
* nginx: * nginx:
```
XACCELREDIRECT = True XACCELREDIRECT = True
```
* apache: * apache:
```
XSENDFILE = True 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} * 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" VIDEO_PREFIX = "//video{uid}.pad.ma"
SESSION_COOKIE_DOMAIN = ".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 * enable debug output in http responds, otherwise a traceback will be available in Debug->View Logs... for admins
```
DEBUG=False DEBUG=False
```
## config.jsonc ## config.jsonc