Simple encryption REST API written with Flask framework
Furkan Kalkan c59cb7a649 Base64 format changed to urlsafe | преди 2 години | |
---|---|---|
.github | преди 3 години | |
src | преди 2 години | |
.gitignore | преди 3 години | |
Dockerfile | преди 3 години | |
LICENSE | преди 3 години | |
README.md | преди 3 години | |
docker-compose.yml | преди 3 години | |
nginx.conf | преди 3 години | |
requirements.txt | преди 3 години |
Basic Rest API microservice that encrypt/decrypt text using AES
This project written with Flask web framework. It use flask-smorest for REST API and Pyctuator for actuator endpoint.
Pre-built images are here: https://hub.docker.com/r/mantissoftware/encryption-service
To run pre-built image, run
docker run -p 5000:5000 -e __SERVICE_AES_KEY=<base64_aes_key> -e __SERVICE_AES_IV=<base64_aes_iv> mantissoftware/encryption-service
and go http://localhost:5000/swagger-ui to access Swagger-UI
Run docker-compose build
to build your own image.
⚠️ You have to change __SERVICE_AES_KEY and __SERVICE_AES_IV environment variables before build & deploy your own image
To test your image, run docker-compose run
and go http://localhost/swagger-ui to access swagger-ui
⚠️ Don't forget to set __SERVICE_ACTUATOR_BASE_URI environment variable (Value: http(s):///)