mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
Add docker-compose.yml and friends
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
cert_dir="/etc/nginx/certs"
|
||||
cert_path="${cert_dir}/dev.crt"
|
||||
key_path="${cert_dir}/dev.key"
|
||||
|
||||
if [ ! -f "$cert_path" ] || [ ! -f "$key_path" ]; then
|
||||
mkdir -p "$cert_dir"
|
||||
rm -f "$cert_path" "$key_path"
|
||||
openssl req \
|
||||
-x509 \
|
||||
-nodes \
|
||||
-newkey rsa:2048 \
|
||||
-days 365 \
|
||||
-keyout "$key_path" \
|
||||
-out "$cert_path" \
|
||||
-subj "/CN=localhost"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user