Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 440 Bytes

File metadata and controls

16 lines (13 loc) · 440 Bytes

Setting HTTP Auth on the Elastica Client

It may be necessary to set username/password for HTTP authentication on the Elastica client.

They can be set using the username and password configuration keys:

# app/config/config.yml
fos_elastica:
    clients:
        default:
            hosts: ['http://example.com:80']
            username: 'username'
            password: 'password'