2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

fix: 安装面板生成 SSL 证书

This commit is contained in:
耗子
2024-01-06 11:17:52 +08:00
parent bb5dd8a835
commit 4da6969636

View File

@@ -247,6 +247,7 @@ Init_Panel() {
${setup_Path}/panel/panel --env="panel.conf" artisan key:generate
${setup_Path}/panel/panel --env="panel.conf" artisan jwt:secret
${setup_Path}/panel/panel --env="panel.conf" artisan migrate
openssl req -x509 -nodes -days 36500 -newkey ec:<(openssl ecparam -name secp384r1) -keyout ${setup_Path}/panel/storage/ssl.key -out ${setup_Path}/panel/storage/ssl.crt -subj "/C=CN/ST=Tianjin/L=Tianjin/O=HaoZi Technology Co., Ltd./OU=HaoZi Panel/CN=Panel"
chmod -R 700 ${setup_Path}/panel
cp -f scripts/panel.sh /usr/bin/panel
chmod -R 700 /usr/bin/panel