mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -07:00
update acme-challenge always
This commit is contained in:
parent
8301436be6
commit
7f9f1c0253
1 changed files with 2 additions and 2 deletions
|
@ -214,13 +214,13 @@ for auth in $authz; do
|
||||||
# default nginx method
|
# default nginx method
|
||||||
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
|
||||||
echo 'location ~ "^/\.well-known/acme-challenge/(.*)$" {' \
|
echo 'location ~ "^/\.well-known/acme-challenge/(.*)$" {' \
|
||||||
> $conf
|
> $conf
|
||||||
echo ' default_type text/plain;' >> $conf
|
echo ' default_type text/plain;' >> $conf
|
||||||
echo ' return 200 "$1.'$THUMB'";' >> $conf
|
echo ' return 200 "$1.'$THUMB'";' >> $conf
|
||||||
echo '}' >> $conf
|
echo '}' >> $conf
|
||||||
fi
|
# fi
|
||||||
echo "[$(date)] : in $conf we put: $THUMB" >> /usr/local/vesta/log/letsencrypt.log
|
echo "[$(date)] : in $conf we put: $THUMB" >> /usr/local/vesta/log/letsencrypt.log
|
||||||
if [ ! -e "$sconf" ]; then
|
if [ ! -e "$sconf" ]; then
|
||||||
ln -s "$conf" "$sconf"
|
ln -s "$conf" "$sconf"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue