Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | #!/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` |