Update v-migrate-site-to-https

This commit is contained in:
myvesta 2020-07-13 23:53:38 +02:00 committed by GitHub
commit ce8a4e6305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,10 +146,10 @@ read -p "=== Press Enter to continue ==="
domain=$FROM_DOMAIN
user=$FROM_USER
if [ ! -f "/home/$user/conf/web/ssl.$domain.pem" ]; then
if [ ! -f "/home/$user/conf/web/ssl.$domain.ca" ]; then
v-add-letsencrypt-domain "$user" "$domain" "www.$domain" "yes"
fi
if [ -f "/home/$user/conf/web/ssl.$domain.pem" ]; then
if [ -f "/home/$user/conf/web/ssl.$domain.ca" ]; then
if [ -f "/usr/local/vesta/data/templates/web/nginx/force-https.stpl" ]; then
v-change-web-domain-proxy-tpl "$user" "$domain" "force-https" "jpeg,jpg,png,gif,bmp,ico,svg,tif,tiff,css,js,ttf,otf,webp,txt,csv,rtf,doc,docx,xls,xlsx,ppt,pptx,odf,odp,ods,odt,pdf,psd,ai,eot,eps,ps,zip,tar,tgz,gz,rar,bz2,7z,aac,m4a,mp3,mp4,ogg,wav,wma,3gp,avi,flv,m4v,mkv,mov,mpeg,mpg,wmv,exe,iso,dmg,swf,woff,woff2" "yes"
fi