Simple encryption REST API written with Flask framework

Furkan Kalkan c59cb7a649 Base64 format changed to urlsafe преди 2 години
.github f7758d62ad Update docker-image.yml преди 3 години
src c59cb7a649 Base64 format changed to urlsafe преди 2 години
.gitignore 3e7c0de0cb codes added преди 3 години
Dockerfile 98920d1c59 Update Dockerfile преди 3 години
LICENSE b6c5d0a2ca Initial commit преди 3 години
README.md 7d263dd46e Update README.md преди 3 години
docker-compose.yml c0bd490914 Update docker-compose.yml преди 3 години
nginx.conf e3d75e4b71 Proxy HTTP instead of wsgi protocol преди 3 години
requirements.txt 3e7c0de0cb codes added преди 3 години

README.md

encryption-service

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.

Running

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

Building your own image

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

Deployment

⚠️ Don't forget to set __SERVICE_ACTUATOR_BASE_URI environment variable (Value: http(s):///)