console-contracts

Console Contracts

  • Canonical Webteam Charmers
Channel Revision Published Runs on
latest/beta 9 21 Feb 2025
Ubuntu 24.04 Ubuntu 22.04
latest/beta 8 21 Feb 2025
Ubuntu 24.04 Ubuntu 22.04
latest/edge 6 14 Feb 2025
Ubuntu 22.04
juju deploy console-contracts --channel beta
Show information

Platform:

Learn about configurations >

  • app-secret-key | string

    Long secret you can use for sessions, csrf or any other thing where you need a random secret shared by all units

  • app-secret-key-id | secret

    This configuration is similar to app-secret-key, but instead accepts a Juju user secret ID. The secret should contain a single key, "value", which maps to the actual application secret key. To create the secret, run the following command: juju add-secret my-app-secret-key value=<secret-string> && juju grant-secret my-app-secret-key fastapi-app, and use the output secret ID to configure this option.

  • contracts | secret

    Contracts API credentials

  • metrics-path | string

    Default: /metrics

    Path where the prometheus metrics will be scraped.

  • metrics-port | int

    Default: 8080

    Port where the prometheus metrics will be scraped.

  • webserver-log-level | string

    Default: info

    Set the log level. Options: 'critical', 'error', 'warning', 'info', 'debug', 'trace'. Sets the env variable UVICORN_LOG_LEVEL.

  • webserver-port | int

    Default: 8080

    Bind to a socket with this port. Default: 8000. Sets env variable UVICORN_PORT.

  • webserver-workers | int

    Default: 1

    Number of workers for uvicorn. Sets env variable WEB_CONCURRENCY. See https://www.uvicorn.org/#command-line-options.