#!/bin/sh generate_self_signed_ssl() { local key_file="certs/selfsigned.key" local cert_file="certs/selfsigned.crt" local csr_file="certs/selfsigned.csr" local config_file="certs/openssl.cnf" local days_valid=365 mkdir -p certs cat > "$config_file" <> /dev/null 2>&1 echo ' ██████╗ █████╗ ██████╗ ██╗ ██╗██╗ ██╗██╗██████╗ ███████╗ ██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██║ ██║██║██╔══██╗██╔════╝ ██║ ██║███████║██████╔╝█████╔╝ ██║ █╗ ██║██║██████╔╝█████╗ ██║ ██║██╔══██║██╔══██╗██╔═██╗ ██║███╗██║██║██╔══██╗██╔══╝ ██████╔╝██║ ██║██║ ██║██║ ██╗╚███╔███╔╝██║██║ ██║███████╗ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝╚═╝ ╚═╝╚══════╝ Dockerized by NOXCIS ' # Start the server allow_private_ips_only yarn start & nginx & # Wait indefinitely to handle SIGTERM wait