mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-02 17:24:29 +02:00
Docker compose and container stuff
This commit is contained in:
parent
7332bca96e
commit
563ee7408e
12 changed files with 187 additions and 2 deletions
12
containers/nginx/nginx_entrypoint.sh
Normal file
12
containers/nginx/nginx_entrypoint.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
CERT_DIR="/certificate"
|
||||
|
||||
if [ ! -f "$CERT_DIR/nginx.key" ] || [ ! -f "$CERT_DIR/nginx.pem" ]; then
|
||||
echo "Creating self signed certificate..."
|
||||
openssl req -x509 -newkey rsa:4096 -nodes -keyout "$CERT_DIR/nginx.key" -out "$CERT_DIR/nginx.pem" -days 3650 -subj "/CN=localhost"
|
||||
else
|
||||
echo "Skipping self signed certificate creation, files already exist."
|
||||
fi
|
||||
|
||||
exec "$@"
|
Loading…
Add table
Add a link
Reference in a new issue