60 lines
2.6 KiB
YAML
Executable File
60 lines
2.6 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
|
|
|
|
s3:
|
|
endpoint: $STORAGE_ENDPOINT|"http://127.0.0.1:9000" # MinIO endpoint
|
|
access_key: $STORAGE_KEY|root # MinIO user name
|
|
secret_key: $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"
|
|
bucket_name: $STORAGE_BUCKET_NAME|"pyinfra-test-bucket" # TODO Maybe refactor!
|
|
target_file_extension: $TARGET_FILE_EXTENSION|"pdf" # Defines type of file pulled from storage
|
|
|
|
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}
|
|
|
|
test:
|
|
minio:
|
|
s3:
|
|
endpoint: "http://127.0.0.1:9000"
|
|
access_key: root
|
|
secret_key: password
|
|
|
|
aws:
|
|
s3:
|
|
endpoint: https://s3.amazonaws.com
|
|
access_key: AKIA4QVP6D4LCDAGYGN2
|
|
secret_key: 8N6H1TUHTsbvW2qMAm7zZlJ63hMqjcXAsdN7TYED
|
|
|
|
azure:
|
|
azure_blob_storage:
|
|
connection_string: "DefaultEndpointsProtocol=https;AccountName=iqserdevelopment;AccountKey=4imAbV9PYXaztSOMpIyAClg88bAZCXuXMGJG0GA1eIBpdh2PlnFGoRBnKqLy2YZUSTmZ3wJfC7tzfHtuC6FEhQ==;EndpointSuffix=core.windows.net"
|
|
|
|
bucket: "pyinfra-test-bucket"
|