2013-10-10 8 views
13

Ho usato flower localmente e sembra abbastanza facile da configurare ed eseguire, ma non riesco a vedere come lo configurerei in un ambiente di produzione.Come si aggiunge l'autenticazione e l'endpoint a Django Celery Flower Monitoring?

In particolare, come è possibile aggiungere l'autenticazione e come definire un URL per accedervi?

+0

Potete per favore aiutare a fiorire installazione con celeryd .... sedano In realtà io sono in esecuzione da 'python manage.py celeryd' è in esecuzione bene, ma quando sto cercando di corri fiore da 'fiore di sedano -A proj --address = 127.0.0.1 --port = 5555' non viene eseguito ... –

risposta

11

Per l'indirizzo personalizzato, utilizzare il flag --address. Per l'autenticazione, utilizzare il flag --basic_auth.

Vedi sotto:

# 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

Ho provato sia l'ip esterno che 0.0.0.0, ma non ha avuto successo. – ahujamoh

Problemi correlati