Flower can be configured from the command line:
$ flower --auto_refresh=False
Or, using flowerconfig.py configuration file:
# Broker settings
BROKER_URL = 'amqp://guest:guest@localhost:5672//'
# RabbitMQ management api
broker_api = 'http://guest:guest@localhost:15672/api/'
# Enable debug logging
logging = 'DEBUG'
Options passed through the command line have precedence over the options defined in the configuration file.
Note
flowerconfig.py file should be available on the Python path.
Standard Celery configuration settings can be overridden in the configuration file. See Celery Configuration reference for a complete listing of all the available settings, and their default values.
Celery command line options also can be passed to Flower. For example the –broker sets the default broker url:
$ flower --broker=amqp://guest:guest@localhost:5672//
For a full list of options see:
$ celery --help
Enables Google OpenID authentication. auth is a regexp of emails to grant access. For more info see Google OpenID
Refresh dashboards automatically (by default, auto_refresh=True)
Enables HTTP Basic authentication. basic_auth is a comma separated list of username:passworrd. See HTTP Basic Authentication for more info.
Flower uses RabbitMQ Managment Plugin to get info about queues. broker_api is a URL of RabbitMQ HTTP API including user credentials.
$ flower --broker_api=http://username:password@rabbitmq-server-name:15672/api/
Note
By default the managment plugin is not enabled. To enable it run:
$ rabbitmq-plugins enable rabbitmq_management
Sets worker inspect timeout (by default, inspect_timeout=10000 in milliseconds)
Enable persistent mode. If the persistent mode is enabled Flower saves the current state and reloads on restart (by default, persistent=False)
Enables deploying Flower on non-root URL.
For example to access Flower on http://example.com/flower run it with:
$ flower --url_prefix=flower
And use the following nginx configuration:
server {
listen 80;
server_name example.com;
location /flower/ {
rewrite ^/flower/(.*)$ /$1 break;
proxy_pass http://example.com:5555;
proxy_set_header Host $host;
}
}