Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ENV variable support for buggregator server configuration #264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

butschster
Copy link
Member

This PR enhances the configuration of the .rr-prod.yaml file to support ENV variables for better flexibility and customization during the server start.

Key changes:

  • Introduced ENV variables for logging mode, encoding, and plugin-specific levels.
  • Added support for ENV variables to configure HTTP CORS settings.
  • Enabled ENV variables for TCP server addresses and buffer size.
  • Provided better documentation for configurable fields.

This update simplifies the deployment process by allowing configurations to be modified without editing the YAML file directly, ensuring compatibility across different environments.

ENV Variables

Variable Name Description Default Value
RR_LOG_MODE Logging mode: development, production, or raw. production
RR_LOG_ENCODING Log encoding format: console or json. Recommended json for production. json
RR_LOG_LEVEL Global logging level: panic, error, warn, info, debug. warn
RR_LOG_HTTP_LEVEL Logging level for HTTP plugin: panic, error, warn, info, debug. warn
RR_LOG_TCP_LEVEL Logging level for TCP plugin: panic, error, warn, info, debug. warn
RR_LOG_CENTRIFUGE_LEVEL Logging level for Centrifuge plugin: panic, error, warn, info, debug. warn
RR_LOG_SERVER_LEVEL Logging level for the server: panic, error, warn, info, debug. warn
RR_LOG_SERVICE_LEVEL Logging level for services: panic, error, warn, info, debug. warn
RR_HTTP_ALLOWED_ORIGIN Allowed origins for CORS. Typically set to specific domains or * for all. *
RR_HTTP_ALLOWED_HEADERS Allowed headers for CORS. Set * for all or specify headers. *
RR_HTTP_ALLOW_CREDENTIALS Whether CORS credentials (cookies, authorization) are allowed. true
RR_HTTP_NUM_WORKERS Number of workers in the HTTP pool. Determines concurrency for HTTP handling. (Unset by default)
RR_TCP_MONOLOG_ADDR Address for the Monolog TCP server. :9913
RR_TCP_VAR_DUMPER_ADDR Address for the Var-Dumper TCP server. :9912
RR_TCP_SMTP_ADDR Address for the SMTP TCP server. :1025
RR_TCP_READ_BUF_SIZE Buffer size for TCP data reading (in bytes). Higher values reduce read system calls for large payloads. 50485760 (50MB)
RR_TCP_NUM_WORKERS Number of workers in the TCP pool. Determines concurrency for TCP handling. (Unset by default)
RR_CENTRIFUGE_PROXY_ADDRESS Proxy address for Centrifuge plugin. (Unset by default)
RR_CENTRIFUGE_GRPC_API_ADDRESS gRPC API address for Centrifuge plugin. (Unset by default)
RR_CENTRIFUGE_NUM_WORKERS Number of workers in the Centrifuge poll. (Unset by default)

@butschster butschster added enhancement New feature or request docker labels Jan 3, 2025
@butschster butschster requested a review from roxblnfk January 3, 2025 09:48
@butschster butschster self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant