Skip to content

Commit

Permalink
Allow customizing number of api workers
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Feb 17, 2025
1 parent 51a3499 commit 546a9ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions generator/docker-components/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:
BITCART_REVERSEPROXY: ${BITCART_REVERSEPROXY:-nginx-https}
BITCART_HTTPS_ENABLED: ${BITCART_HTTPS_ENABLED:-false}
SENTRY_DSN: ${BITCART_SENTRY_DSN:-}
BITCART_API_WORKERS: ${BITCART_API_WORKERS}
extra_hosts:
- "host.docker.internal:host-gateway"
expose:
Expand Down
1 change: 1 addition & 0 deletions helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ BITCART_BEHIND_REVERSEPROXY=$BITCART_BEHIND_REVERSEPROXY
BITCART_VERSION=$BITCART_VERSION
BITCART_UPDATE_URL=$BITCART_UPDATE_URL
BITCART_SENTRY_DSN=$BITCART_SENTRY_DSN
BITCART_API_WORKERS=$BITCART_API_WORKERS
$(env | awk -F "=" '{print "\n"$0}' | grep "BITCART_.*.*_PORT")
$(env | awk -F "=" '{print "\n"$0}' | grep "BITCART_.*.*_EXPOSE")
$(env | awk -F "=" '{print "\n"$0}' | grep "BITCART_.*.*_SCALE")
Expand Down
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Environment variables:
BITCART_HTTPS_ENABLED: a special flag to rewrite bitcart API URLs to https. It does not enable https setup automatically and is required for custom cases such as cloudflare tunnel.
BITCART_BEHIND_REVERSEPROXY: set this when running in one domain mode with custom nginx port, but when bitcart's nginx is behind your own reverse proxy
BITCART_SENTRY_DSN: Optional Sentry DSN for error tracking
BITCART_API_WORKERS: Number of API workers to run (default: 2*cores+1=$((2 * $(nproc) + 1)))
Add-on specific variables:
TOR_RELAY_NICKNAME: If tor relay is activated, the relay nickname
TOR_RELAY_EMAIL: If tor relay is activated, the email for Tor to contact you regarding your relay
Expand Down

0 comments on commit 546a9ae

Please sign in to comment.