blob: aab6cd5147f5ae299438d2b5547c1c0b9214b244 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001#!/bin/bash
2
3`openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
4 -keyout /app/dockerapi_key.pem \
5 -out /app/dockerapi_cert.pem \
6 -subj /CN=dockerapi/O=mailcow \
7 -addext subjectAltName=DNS:dockerapi`
8
9`uvicorn --host 0.0.0.0 --port 443 --ssl-certfile=/app/dockerapi_cert.pem --ssl-keyfile=/app/dockerapi_key.pem dockerapi:app`