save code
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /home/xsl/product
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
cd "$ROOT"
|
||||
mkdir -p certs
|
||||
|
||||
openssl req -x509 -nodes -newkey rsa:2048 -days 365 \
|
||||
@@ -10,6 +12,6 @@ openssl req -x509 -nodes -newkey rsa:2048 -days 365 \
|
||||
-subj "/C=CN/ST=Local/L=Local/O=VisualChat/OU=Dev/CN=localhost"
|
||||
|
||||
echo "Generated:"
|
||||
echo " /home/xsl/product/certs/dev-cert.pem"
|
||||
echo " /home/xsl/product/certs/dev-key.pem"
|
||||
echo " $ROOT/certs/dev-cert.pem"
|
||||
echo " $ROOT/certs/dev-key.pem"
|
||||
echo "Set SSL_CERTFILE and SSL_KEYFILE in .env to enable HTTPS."
|
||||
|
||||
Reference in New Issue
Block a user