/enigma2

Simple online solution to transfer disposable links, like https://onetimesecret.com https://privnote.com

Primary LanguageGoMIT LicenseMIT

ENIGMA

Docker Cloud Automated build Docker Cloud Build Status Docker Pulls Docker Image Version (latest by date) GitHub

Simple online solution to transfer disposable links, like onetimesecret.com

Demo

https://enigma2-example.herokuapp.com

Examples

see deployments examples

Run container

docker run --rm -p 8080:8080 dessolo/enigma2:latest

Configuration

For more details see example config.
Default config file path is /etc/enigma2/config.yml. You can override it by specifying the path in the CONFIG_FILE_PATH environment variable.

Available secret storages

Memory

val: memory
Keeping all secrets in memory

⚠️ Attention! not for productions use!!!: old secrets are removed only on request, please choose another storages, like redis

Redis

val: redis
Keeping all secrets in redis

Build project

docker
docker build -t enigma .

binary

make build-server

Run compiled project

docker
docker run --rm --name="enigma" -p 8080:8080 localhost/enigma

binary

./enigma2_server_{VERSION}_{OS}_{ARCH}

Customisation

You can change the html templates to suit your needs.
index.html - main page
view_secret.html - rendered when a secret is requested

⚠️ get.html must contain "%s" to insert the secret into the template