# reflex-api
pipenv install
instance\application.conf
and provide the following MASTER_PASSWORD = "somethingdifferentthanthesecretkey"
SECRET_KEY = "pleasechangemetosomethingdifferent"
SECURITY_PASSWORD_SALT = "something_super_secret_change_in_production"
pipenv run python manage.py run
version: '3.7'
services:
reflex-api:
environment:
- REFLEX_ES_URL=es01:9200
- REFLEX_ES_USERNAME=elastic
- REFLEX_ES_PASSWORD=password
- REFLEX_ES_CA=/ca.crt
- REFLEX_ES_CERT_VERIFY=true
- REFLEX_RECOVERY_MODE=false
image: zeroonesec/reflex-api:elastic-backend
container_name: reflex-api
volumes:
- ./application.conf:/instance/application.conf
- ./ca.crt:/ca.crt
reflex-ui:
image: zeroonesec/reflex-ui:elastic-migration
container_name: reflex-ui
ports:
- 80:80
- 443:443
application.conf
MASTER_PASSWORD = "somethingdifferentthanthesecretkey"
SECRET_KEY = "pleasechangemetosomethingdifferent"
SECURITY_PASSWORD_SALT = "something_super_secret_change_in_production"
REFLEX_ES_URL
to the hostnames of your Elasticsearch clusterREFLEX_ES_USERNAME
and REFLEX_ES_PASSWORD
REFLEX_ES_CERT_VERIFY=true
to make sure certs are validdocker exec reflex-api sh -c "pipenv run python setup.py"
to perform initial setup