fix: dummy SSL certificate

This commit is contained in:
Elton Renda 2021-05-13 11:50:09 +02:00
parent 812d3a8342
commit 532d62833b
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ pct exec $_ctid -- sh -c "wget --no-cache -qO - $_raw_base/setup.sh | sh"
# Get network details and show completion message
_ip=$(pct exec $_ctid -- ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
info "Successfully created Nginx Proxy Manager LXC $_ctid."
echo -e "\e[32m[success] Successfully created Nginx Proxy Manager LXC $_ctid.\e[39m";
echo -e "
Nginx Proxy Manager is reachable by going to the following URL.

View File

@ -149,7 +149,7 @@ echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print ($2 ~ ":")? "["$2"]
if [ ! -f /data/nginx/dummycert.pem ] || [ ! -f /data/nginx/dummykey.pem ]
then
log "Generating dummy SSL certificate"
runcmd openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj '/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost' -keyout /data/nginx/dummykey.pem -out /data/nginx/dummycert.pem
runcmd 'openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj "/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost" -keyout /data/nginx/dummykey.pem -out /data/nginx/dummycert.pem'
fi
# Copy app files