diff --git a/email-worker/.env b/email-worker/.env index 374a36c..55e5827 100644 --- a/email-worker/.env +++ b/email-worker/.env @@ -1,9 +1,26 @@ -DEBUG=server:server +# Worker Configuration +PULL_INTERVAL=60000 +EMAIL_BUDGET=10 +# MongoDB Configuration +MONGODB_URI=mongodb://localhost:27017/utility-bills + +# Mailgun Configuration +MAILGUN_API_KEY=d660e320e0cdeecc125d4ecd6bc5cd66-e61ae8dd-01bdd61a +MAILGUN_DOMAIN=rezije.app + +# Security +SHARE_LINK_SECRET=fb831e43b5ab594106e093f86fa8cb2a2405c564a61c3a7681079ec416528654 + +# Server Configuration +PORT=3001 + +# Logging +DEBUG=worker:*,email:*,db:* + +# Prometheus Metrics (optional) +PROMETHEUS_APP_LABEL=email-worker +PROMETHEUS_HISTOGRAM_BUCKETS=0.1, 0.5, 1, 5, 10 + +# Environment ENV=dev - -# podešen port koji se neće kršiti sa web5-main -PORT="3001" - -# run job every 60 seconds -PULL_INTERVAL=60000 \ No newline at end of file diff --git a/email-worker/.env.example b/email-worker/.env.example index 0ecb653..55e5827 100644 --- a/email-worker/.env.example +++ b/email-worker/.env.example @@ -13,7 +13,7 @@ MAILGUN_DOMAIN=rezije.app SHARE_LINK_SECRET=fb831e43b5ab594106e093f86fa8cb2a2405c564a61c3a7681079ec416528654 # Server Configuration -PORT=3000 +PORT=3001 # Logging DEBUG=worker:*,email:*,db:*