Fix config

This commit is contained in:
Thomas Sileo 2019-04-05 11:42:14 +02:00
parent 066309a0c8
commit 2ed79e9e27
3 changed files with 5 additions and 1 deletions

View file

@ -32,6 +32,8 @@ services:
- RABBITMQ_NODENAME=rabbit@my-rabbit - RABBITMQ_NODENAME=rabbit@my-rabbit
poussetaches: poussetaches:
image: "poussetaches:latest" image: "poussetaches:latest"
ports:
- '7991'
environment: environment:
- POUSSETACHES_AUTH_KEY=123 - POUSSETACHES_AUTH_KEY=123
networks: networks:

View file

@ -40,5 +40,7 @@ services:
- "${DATA_DIR}/rabbitmq:/var/lib/rabbitmq" - "${DATA_DIR}/rabbitmq:/var/lib/rabbitmq"
poussetaches: poussetaches:
image: "poussetaches:latest" image: "poussetaches:latest"
ports:
- '7991'
environment: environment:
- POUSSETACHES_AUTH_KEY=123 - POUSSETACHES_AUTH_KEY=123

View file

@ -33,7 +33,7 @@ class PousseTaches:
) )
resp.raise_for_status() resp.raise_for_status()
return resp.headers.get("Poussetaches-Task-ID") return resp.headers["Poussetaches-Task-ID"]
def parse(self, req: flask.Request) -> Task: def parse(self, req: flask.Request) -> Task:
if req.headers.get("Poussetaches-Auth-Key") != POUSSETACHES_AUTH_KEY: if req.headers.get("Poussetaches-Auth-Key") != POUSSETACHES_AUTH_KEY: