2013-10-10 15 views
13

私はローカルで花を使用していましたが、セットアップと実行が簡単なようですが、運用環境でどのように設定するのか分かりません。Django Celery Flower Monitoringに認証とエンドポイントを追加するにはどうすればいいですか?

特に、認証を追加するにはどうすればよいですか、どのようにURLにアクセスするのですか?

+0

は、あなたはそれがうまく実行されているceleryd'が、私がしようとしていたときに は、実際に私は、Pythonのmanage.py 'でセロリを実行しています.... celerydとセットアップの花に助けてください'Celery flower -A proj --address = 127.0.0.1 --port = 5555'で花を走らせます。 –

答えて

11

カスタムアドレスの場合は、--addressフラグを使用してください。 authの場合は、--basic_authフラグを使用します。

以下を参照してください。

# celery flower --help 
Usage: /usr/local/bin/celery [OPTIONS] 

Options: 

    --address      run on the given address 
    --auth       regexp of emails to grant access 
    --basic_auth      colon separated user-password to enable 
            basic auth 
    --broker_api      inspect broker e.g. 
            http://guest:[email protected]:15672/api/ 
    --certfile      path to SSL certificate file 
    --db        flower database file (default flower.db) 
    --debug       run in debug mode (default False) 
    --help       show this help information 
    --inspect      inspect workers (default True) 
    --inspect_timeout    inspect timeout (in milliseconds) (default 
            1000) 
    --keyfile      path to SSL key file 
    --max_tasks      maximum number of tasks to keep in memory 
            (default 10000) (default 10000) 
    --persistent      enable persistent mode (default False) 
    --port       run on the given port (default 5555) 
    --url_prefix      base url prefix 
    --xheaders      enable support for the 'X-Real-Ip' and 
            'X-Scheme' headers. (default False) 
+0

私は外部IPと0.0.0.0の両方を試しましたが、成功しませんでした。 – ahujamoh

関連する問題