-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.default
More file actions
64 lines (59 loc) · 2.59 KB
/
Copy path.env.default
File metadata and controls
64 lines (59 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# used for local development
AWS_REGION=eu-central-1
# to suppress docker compose warning AWS_KEY not set
AWS_ACCESS_KEY_ID=123
AWS_SECRET_ACCESS_KEY=123
# boolean TRUE or FALSE
AWS_LOCAL=true
# moto server port and endpoint for local AWS service emulation (DynamoDB, SQS, S3)
# MOTO_PORT is used by docker-compose to expose the container port
MOTO_PORT=5000
MOTO_HOST=localhost
# shared across service-print-api and service-print-renderer so both projects
# share the same moto-server container instead of each spinning up their own
COMPOSE_PROJECT_NAME=service-print-local
DYNAMODB_TABLE_NAME=service-print-jobs-local
SQS_QUEUE_NAME=service-print-jobs-queue-local
SQS_DL_QUEUE_NAME=service-print-jobs-dlq-local
AWS_CONNECT_TIMEOUT=5
AWS_READ_TIMEOUT=30
# SQS polling configuration
SQS_WAIT_TIME_SECONDS=20
SQS_DLQ_WAIT_TIME_SECONDS=2
SQS_MAX_MESSAGES=1
# How many times a message can be received before being routed to the DLQ
SQS_MAX_RECEIVE_COUNT=3
# How long (in seconds) a received message is hidden from other consumers before becoming visible again.
# Must exceed the worst-case render time so a slow job is never redelivered while still processing:
# goto + gaMapReady (2 x TIMEOUT_LOADING_WEB_PAGE = 60s) + PDF render/upload, with margin.
SQS_VISIBILITY_TIMEOUT=90
# S3
S3_BUCKET_NAME=service-print-pdf-local
# TTL in seconds for the Cache-Control header set on uploaded PDFs (default: 1 hour)
S3_PDF_CACHE_CONTROL_MAX_AGE=3600
# web-portal endpoint
# Per-job URL is built as <PORTAL_URL without trailing /?>/<print_lang>/print?<query>
PORTAL_URL=https://www.dev.sgdi.tech/?
# Rendering
# Set USE_GPU=true and WAYLAND_DISPLAY=wayland-0 for local GPU acceleration (Wayland + NVIDIA/Mesa Vulkan)
USE_GPU=false
WAYLAND_DISPLAY=
TIMEOUT_LOADING_WEB_PAGE=30000
# Writable scratch dir (probe files, temporary PDFs, Chrome/Playwright scratch data).
# Only needs to be set when / is read-only, then point it at a writable mount.
# TMP_DIR=/tmp
BROWSER_RECYCLE_AFTER_JOBS=10
BROWSER_NAVIGATION_RETRIES=3
# OTEL: exports to the OTLP collector (run `make start-otel` for Jaeger + Prometheus)
OTEL_SDK_DISABLED=false
OTEL_ENABLE_BOTOCORE=true
OTEL_ENABLE_METRICS=true
# Metric export cadence, read directly by the OTEL SDK (ms). The SDK defaults to
# 60s/30s; shorter values give quicker feedback when testing locally.
OTEL_METRIC_EXPORT_INTERVAL=10000
OTEL_METRIC_EXPORT_TIMEOUT=3000
OTEL_ENABLE_OTLP_EXPORTER=true
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
OTEL_EXPORTER_OTLP_INSECURE=true
# service.name is not settable here: otel.py pins it to "service-print", since the
# API and the renderer are two processes of one logical service.