dc: fix compose, remove SESSION_COOKIE_DOMAIN
This commit is contained in:
parent
e68352b09c
commit
333ee3eed4
|
@ -8,7 +8,7 @@
|
|||
## Quick instance
|
||||
|
||||
```
|
||||
export PASSBOOK_DOMAIN=domain.tld
|
||||
export PASSBOOK_DOMAIN=localhost
|
||||
# Optionally enable Error-reporting
|
||||
# export PASSBOOK_ERROR_REPORTING=true
|
||||
docker-compose pull
|
||||
|
|
|
@ -65,7 +65,7 @@ services:
|
|||
- internal
|
||||
labels:
|
||||
- traefik.frontend.rule=PathPrefix:/static, /robots.txt
|
||||
- traefik.port=8080
|
||||
- traefik.port=80
|
||||
- traefik.docker.network=internal
|
||||
traefik:
|
||||
image: traefik:1.7
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""passbook management command to bootstrap"""
|
||||
from argparse import REMAINDER
|
||||
from sys import exit as _exit
|
||||
from time import sleep
|
||||
|
||||
|
@ -20,9 +19,6 @@ class Command(BaseCommand):
|
|||
help = """Bootstrap passbook, ensure Database and Cache are
|
||||
reachable, and directories are writeable"""
|
||||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument("command", nargs=REMAINDER)
|
||||
|
||||
def check_database(self) -> bool:
|
||||
"""Return true if database is reachable, false otherwise"""
|
||||
try:
|
||||
|
|
|
@ -54,8 +54,6 @@ CSRF_COOKIE_NAME = f"passbook_csrf{_cookie_suffix}"
|
|||
LANGUAGE_COOKIE_NAME = f"passbook_language{_cookie_suffix}"
|
||||
SESSION_COOKIE_NAME = f"passbook_session{_cookie_suffix}"
|
||||
|
||||
SESSION_COOKIE_DOMAIN = CONFIG.y("domain", None)
|
||||
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
"django.contrib.auth.backends.ModelBackend",
|
||||
"guardian.backends.ObjectPermissionBackend",
|
||||
|
|
Reference in New Issue