mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-08-14 12:32:54 +02:00
「🏗️」 wip: nginx and modsec working
This commit is contained in:
10
docker/front/entry/ssl-cert.sh
Normal file
10
docker/front/entry/ssl-cert.sh
Normal 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
|
Reference in New Issue
Block a user