Merge in RR/pyinfra from endpoint_config_changes to master
Squashed commit of the following:
commit 4392513d1b542ff8b3ca4702827ad656cb27ab4c
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Tue Feb 22 13:50:53 2022 +0100
fixed comment in config
commit 1ee27db1536ec085fdc3d249aec16bd69a83d73a
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Tue Feb 22 13:47:58 2022 +0100
fixed minio endpoint in config
commit bc07d5086f30dafc9adf4e6eb6002f92ee3c11a5
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Tue Feb 22 13:31:54 2022 +0100
config refac
commit 2ad7fc6477cd986647b44fde8a3c0ec5938ec203
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Tue Feb 22 13:21:56 2022 +0100
refactorig of webserver startup logic
39 lines
1.9 KiB
YAML
Executable File
39 lines
1.9 KiB
YAML
Executable File
rabbitmq:
|
|
host: $RABBITMQ_HOST|localhost # RabbitMQ host address
|
|
port: $RABBITMQ_PORT|5672 # RabbitMQ host port
|
|
user: $RABBITMQ_USERNAME|user # RabbitMQ username
|
|
password: $RABBITMQ_PASSWORD|bitnami # RabbitMQ password
|
|
heartbeat: $RABBITMQ_HEARTBEAT|7200 # Controls AMQP heartbeat timeout in seconds
|
|
|
|
queues:
|
|
input: image_request_queue # Requests to service
|
|
output: image_response_queue # Responses by service
|
|
dead_letter: image_dead_letter_queue # Messages that failed to process
|
|
|
|
prefetch_count: 1
|
|
|
|
retry: # Controls retry behaviour for messages the processing of which failed
|
|
enabled: $RETRY|False # Toggles retry behaviour
|
|
max_attempts: $MAX_ATTEMPTS|3 # Number of times a message may fail before being published to dead letter queue
|
|
|
|
minio:
|
|
endpoint: $STORAGE_ENDPOINT|"127.0.0.1:9000" # MinIO endpoint
|
|
user: $STORAGE_KEY|root # MinIO user name
|
|
password: $STORAGE_SECRET|password # MinIO user password
|
|
bucket: $STORAGE_BUCKET_NAME|redaction # MinIO bucket
|
|
|
|
azure_blob_storage:
|
|
connection_string: $STORAGE_AZURECONNECTIONSTRING|"DefaultEndpointsProtocol=https;AccountName=iqserdevelopment;AccountKey=4imAbV9PYXaztSOMpIyAClg88bAZCXuXMGJG0GA1eIBpdh2PlnFGoRBnKqLy2YZUSTmZ3wJfC7tzfHtuC6FEhQ==;EndpointSuffix=core.windows.net"
|
|
container: $STORAGE_AZURECONTAINERNAME|"pyinfra-test-storage"
|
|
|
|
service:
|
|
logging_level: $LOGGING_LEVEL_ROOT|DEBUG # Logging level for service logger
|
|
name: $SERVICE_NAME|pyinfra-service-v1 # Name of the service in the kubernetes cluster
|
|
storage_backend: $STORAGE_BACKEND|s3 # The storage to pull files to be processed from
|
|
analysis_endpoint: $ANALYSIS_ENDPOINT|"http://127.0.0.1:5000"
|
|
|
|
probing_webserver:
|
|
host: $PROBING_WEBSERVER_HOST|"0.0.0.0" # Probe webserver address
|
|
port: $PROBING_WEBSERVER_PORT|8080 # Probe webserver port
|
|
mode: $PROBING_WEBSERVER_MODE|production # webserver mode: {development, production}
|