🏗️」 wip: should be ready to prod

This commit is contained in:
2025-08-24 15:31:23 +02:00
parent 2942fccf0a
commit 27cdfa1644
10 changed files with 3249 additions and 47 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
if [ ! -f /etc/nginx/certs/fullchain.pem ] || [ ! -f /etc/nginx/certs/privkey.pem ]; then
echo "Generating self-signed certs..."
mkdir -p /etc/nginx/certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout /etc/nginx/certs/privkey.pem \
-out /etc/nginx/certs/fullchain.pem \
-subj "/C=FR/ST=IDF/L=Angouleme/O=42/OU=42/CN=trans.kanel.ovh/UID=adjoly"
fi