mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
LetsEncrypt to use Apache if myVesta is behind main nginx
This commit is contained in:
parent
58ff192f53
commit
d0e24ed92f
1 changed files with 8 additions and 0 deletions
|
@ -158,6 +158,14 @@ for auth in $authz; do
|
||||||
check_result $? "DNS _acme-challenge record wasn't created"
|
check_result $? "DNS _acme-challenge record wasn't created"
|
||||||
else
|
else
|
||||||
if [ "$WEB_SYSTEM" = 'nginx' ] || [ ! -z "$PROXY_SYSTEM" ]; then
|
if [ "$WEB_SYSTEM" = 'nginx' ] || [ ! -z "$PROXY_SYSTEM" ]; then
|
||||||
|
if [ -f "/usr/local/vesta/web/inc/nginx_proxy" ]; then
|
||||||
|
# if vesta is behind main nginx
|
||||||
|
well_known="$HOMEDIR/$user/web/$domain/public_html/.well-known"
|
||||||
|
acme_challenge="$well_known/acme-challenge"
|
||||||
|
mkdir -p $acme_challenge
|
||||||
|
echo "$token.$THUMB" > $acme_challenge/$token
|
||||||
|
chown -R $user:$user $well_known
|
||||||
|
fi
|
||||||
conf="$HOMEDIR/$user/conf/web/nginx.$domain.conf_letsencrypt"
|
conf="$HOMEDIR/$user/conf/web/nginx.$domain.conf_letsencrypt"
|
||||||
sconf="$HOMEDIR/$user/conf/web/snginx.$domain.conf_letsencrypt"
|
sconf="$HOMEDIR/$user/conf/web/snginx.$domain.conf_letsencrypt"
|
||||||
if [ ! -e "$conf" ]; then
|
if [ ! -e "$conf" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue