Skip to content

batou9150/photo_burst_detection

Repository files navigation

photo_burst_detection

pypi version

install

pip install photo_burst_detection

install from sources

git clone https://github.com/batou9150/photo_burst_detection.git
cd photo_burst_detection
python3 setup.py install

run

Run with gunicorn (Unix)

pip3 install gunicorn

export PHOTO_BURST_DETECTION_PATH=<start path>
export LDAP_HOST=ad.mydomain.com
export LDAP_BASE_DN=dc=mydomain,dc=com

gunicorn -b 0.0.0.0:8000 photo_burst_detection:app

Run with waitress (Windows)

export PHOTO_BURST_DETECTION_PATH=<start path>
export LDAP_HOST=ad.mydomain.com
export LDAP_BASE_DN=dc=mydomain,dc=com

waitress-serve --listen=*:8000 photo_burst_detection:app

configuration

variable description
PHOTO_BURST_DETECTION_CONFIG config file (optional)
PHOTO_BURST_DETECTION_PATH start path
SECRET_KEY (default value = 'secret')
LDAP_HOST
LDAP_PORT (default value = '389')
LDAP_BASE_DN
LDAP_USER_DN
LDAP_GROUP_DN
LDAP_USER_RDN_ATTR (default value = 'uid')
LDAP_USER_LOGIN_ATTR (default value = 'uid')
LDAP_BIND_USER_DN
LDAP_BIND_USER_PASSWORD
LDAP_GROUP_OBJECT_FILTER (default value = '(objectclass=group)')