🏗️」 wip: nginx and modsec working

This commit is contained in:
2025-07-16 13:46:39 +02:00
parent 86c740b284
commit a92100b7c0
8 changed files with 141 additions and 24 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