浏览代码

Ensure that letsencrypt certs are not used for the local domain

Bob Mottram 6 年前
父节点
当前提交
4ea4d6ed5f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/freedombone-utils-web

+ 3
- 0
src/freedombone-utils-web 查看文件

@@ -1186,6 +1186,9 @@ function install_web_local_user_interface {
1186 1186
         "${PROJECT_NAME}-addcert" -h "${local_hostname}" --dhkey "${DH_KEYLENGTH}"
1187 1187
     fi
1188 1188
 
1189
+    sed -i "s|ssl_certificate .*|ssl_certificate /etc/ssl/certs/${local_hostname}.crt;|g" "$nginx_file"
1190
+    sed -i "s|ssl_certificate_key .*|ssl_certificate_key /etc/ssl/private/${local_hostname}.key;|g" "$nginx_file"
1191
+
1189 1192
     nginx_ensite "${local_hostname}"
1190 1193
 
1191 1194
     # Compatibility with FreedomBox android app