|
@@ -88,7 +88,8 @@ CONFIG_SCHEMA: Dict[str, ConfigDefaultDict] = {
|
|
|
'SERVER_CONFIG': {
|
|
'SERVER_CONFIG': {
|
|
|
'SECRET_KEY': {'type': str, 'default': None},
|
|
'SECRET_KEY': {'type': str, 'default': None},
|
|
|
'BIND_ADDR': {'type': str, 'default': lambda c: ['127.0.0.1:8000', '0.0.0.0:8000'][c['IN_DOCKER']]},
|
|
'BIND_ADDR': {'type': str, 'default': lambda c: ['127.0.0.1:8000', '0.0.0.0:8000'][c['IN_DOCKER']]},
|
|
|
- 'ALLOWED_HOSTS': {'type': str, 'default': '*'},
|
|
|
|
|
|
|
+ 'ALLOWED_HOSTS': {'type': str, 'default': '*'}, # e.g. archivebox.example.com,archivebox2.example.com
|
|
|
|
|
+ 'CSRF_TRUSTED_ORIGINS': {'type': str, 'default': ''}, # e.g. https://archivebox.example.com,https://archivebox2.example.com:8080
|
|
|
'DEBUG': {'type': bool, 'default': False},
|
|
'DEBUG': {'type': bool, 'default': False},
|
|
|
'PUBLIC_INDEX': {'type': bool, 'default': True},
|
|
'PUBLIC_INDEX': {'type': bool, 'default': True},
|
|
|
'PUBLIC_SNAPSHOTS': {'type': bool, 'default': True},
|
|
'PUBLIC_SNAPSHOTS': {'type': bool, 'default': True},
|