README.md 901 Bytes
Newer Older
1
2
# Certapi

3
4
[![pipeline status](https://gitlab.nic.cz/turris/sentinel/cert-api/badges/master/pipeline.svg)](https://gitlab.nic.cz/turris/sentinel/cert-api/commits/master)
[![coverage report](https://gitlab.nic.cz/turris/sentinel/cert-api/badges/master/coverage.svg)](https://gitlab.nic.cz/turris/sentinel/cert-api/commits/master)
5
6

Flask application providing HTTP API for Turris:Sentinel authentication backend.
7
8
9
10
11
12
13
14
15
16
17


## Development usage

- Prepare python virtual environment and install `certapi` package (Consider
  using `-e` option: `pip install -e .`)
- Create `.env` file with local environment variables (see `.env.example`)
- Set the configuration in `instance/local.cfg`
    - Example configuration can be found in `instance/local.cfg.example`
    - The default configuration can be found in `certapi/default_settings.py`
- Run the application using `flask run` (Use wsgi server for production!)