Browse Source

Merge remote-tracking branch 'origin/fix/2020-11-change_permisions_nginx_web_config' into staging/fixes

Kristan Kenney 5 years ago
parent
commit
5e0a5de082
2 changed files with 4 additions and 0 deletions
  1. 2 0
      bin/v-add-web-domain-ssl-force
  2. 2 0
      bin/v-add-web-domain-ssl-hsts

+ 2 - 0
bin/v-add-web-domain-ssl-force

@@ -70,6 +70,8 @@ else
     echo 'RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]' >> $forcessl
 fi
 
+chown root:$user $forcessl
+chmod 640 $forcessl
 
 #----------------------------------------------------------#
 #                       Hestia                             #

+ 2 - 0
bin/v-add-web-domain-ssl-hsts

@@ -56,6 +56,8 @@ fi
 
 echo 'add_header Strict-Transport-Security "max-age=15768000;" always;' > $hstsconf
 
+chown root:$user $hstsconf
+chmod 640 $hstsconf
 
 #----------------------------------------------------------#
 #                       Hestia                             #