simulacrum
simulacrum copied to clipboard
Dockerize the auth0-simulator
trafficstars
Having to install the auth0-simulator as a dev dependency is something we should try and avoid.
Creating a downloadable docker image that we could run something like this would make things a lot easier.
docker run -i --rm --security-opt seccomp=$HOME/chrome.json \
-v myvol:/app \
--name auth0-simulator \
frontside/auth-simulator:latest
We could try something like this to make ssl configuration easier.
What does the user story look like for getting setup with SSL and a complete simulator?
@cowboyd I linked to something I would like to spike in the above issue
https://dev.to/istarkov/fast-and-easy-way-to-setup-web-developer-certificates-450e
TLDR;
- Register a DNS A record somewhere, something like
A auth0-simulator.com 127.0.0.1 - Use certbot to download the certs from letsencrypt
- Point to these certs in https.ts rather than the
mkcertcerts.
let ssl: SSLOptions = {
key: fs.readFileSync(
paths.ssl.keyFile
),
cert: fs.readFileSync(paths.ssl.pemFile),
} as const;
I think we need some way of being able to configure the certs and by either defaulting to mkcert or letsencrypt certs.