---
title: Charmhub | Deploy charmhub-io using Charmhub - The Open Operator Collection
description: Deploy the latest version of charmhub-io as a Kubernetes Operator on
  any cloud.
url: https://charmhub.io/charmhub-io/configurations
---

# charmhub-io

[Canonical Webteam Charmers](https://charmhub.io/publisher/webteam-charmers "View all packages from Canonical Webteam Charmers")

* [Canonical Webteam Charmers](https://charmhub.io/publisher/webteam-charmers "View all packages from Canonical Webteam Charmers")

Platform:

stable 34

```
juju deploy charmhub-io
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [environment](https://charmhub.io/charmhub-io/configurations#environment)
* [flask-application-root](https://charmhub.io/charmhub-io/configurations#flask-application-root)
* [flask-debug](https://charmhub.io/charmhub-io/configurations#flask-debug)
* [flask-env](https://charmhub.io/charmhub-io/configurations#flask-env)
* [flask-permanent-session-lifetime](https://charmhub.io/charmhub-io/configurations#flask-permanent-session-lifetime)
* [flask-preferred-url-scheme](https://charmhub.io/charmhub-io/configurations#flask-preferred-url-scheme)
* [flask-secret-key](https://charmhub.io/charmhub-io/configurations#flask-secret-key)
* [flask-secret-key-id](https://charmhub.io/charmhub-io/configurations#flask-secret-key-id)
* [flask-session-cookie-secure](https://charmhub.io/charmhub-io/configurations#flask-session-cookie-secure)
* [github-token](https://charmhub.io/charmhub-io/configurations#github-token)
* [hmac-secret](https://charmhub.io/charmhub-io/configurations#hmac-secret)
* [login-url](https://charmhub.io/charmhub-io/configurations#login-url)
* [solutions-api-base](https://charmhub.io/charmhub-io/configurations#solutions-api-base)
* [status-banner](https://charmhub.io/charmhub-io/configurations#status-banner)
* [webserver-keepalive](https://charmhub.io/charmhub-io/configurations#webserver-keepalive)
* [webserver-threads](https://charmhub.io/charmhub-io/configurations#webserver-threads)
* [webserver-timeout](https://charmhub.io/charmhub-io/configurations#webserver-timeout)
* [webserver-worker-class](https://charmhub.io/charmhub-io/configurations#webserver-worker-class)
* [webserver-workers](https://charmhub.io/charmhub-io/configurations#webserver-workers)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* environment | string

  Default: production

  Environment in which the application is running, mostly useless for the charmed version of the app
* flask-application-root | string

  Path in which the application / web server is mounted. This configuration will set the FLASK\_APPLICATION\_ROOT environment variable. Run `app.config.from_prefixed_env()` in your Flask application in order to receive this configuration.
* flask-debug | boolean

  Whether Flask debug mode is enabled.
* flask-env | string

  What environment the Flask app is running in, by default it's 'production'.
* flask-permanent-session-lifetime | int

  Time in seconds for the cookie to expire in the Flask application permanent sessions. This configuration will set the FLASK\_PERMANENT\_SESSION\_LIFETIME environment variable. Run `app.config.from_prefixed_env()` in your Flask application in order to receive this configuration.
* flask-preferred-url-scheme | string

  Default: HTTPS

  Scheme for generating external URLs when not in a request context in the Flask application. By default, it's "HTTPS". This configuration will set the FLASK\_PREFERRED\_URL\_SCHEME environment variable. Run `app.config.from_prefixed_env()` in your Flask application in order to receive this configuration.
* flask-secret-key | string

  The secret key used for securely signing the session cookie and for any other security related needs by your Flask application. This configuration will set the FLASK\_SECRET\_KEY environment variable. Run `app.config.from_prefixed_env()` in your Flask application in order to receive this configuration.
* flask-secret-key-id | secret

  This configuration is similar to `flask-secret-key`, but instead accepts a Juju user secret ID. The secret should contain a single key, "value", which maps to the actual Flask secret key. To create the secret, run the following command: `juju add-secret my-flask-secret-key value=<secret-string> && juju grant-secret my-flask-secret-key flask-k8s`, and use the output secret ID to configure this option.
* flask-session-cookie-secure | boolean

  Set the secure attribute in the Flask application cookies. This configuration will set the FLASK\_SESSION\_COOKIE\_SECURE environment variable. Run `app.config.from_prefixed_env()` in your Flask application in order to receive this configuration.
* github-token | string

  Github token used to communicate with the GitHub API.
* hmac-secret | secret

  The secret containing the HMAC-key for solutions service
* login-url | string

  Default: https://login.ubuntu.com

  The U1 SSO login url
* solutions-api-base | string

  Default: http://solutions.staging.charmhub.io/api

  The base URL for the solutions service API
* status-banner | string

  Optional status message displayed as a banner across the site. Leave empty to show no banner.
* webserver-keepalive | int

  Time in seconds for webserver to wait for requests on a Keep-Alive connection.
* webserver-threads | int

  Run each webserver worker with the specified number of threads.
* webserver-timeout | int

  Time in seconds to kill and restart silent webserver workers.
* webserver-worker-class | string

  The webserver worker process class for handling requests. Can be either 'gevent' or 'sync'.
* webserver-workers | int

  The number of webserver worker processes for handling requests.
