mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-09-19 10:11:36 +08:00
feat(router): disable home page route and add dependencies README
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
## 安装 acme.sh
|
||||
|
||||
https://get.acme.sh | sh
|
||||
|
||||
## DNS-API
|
||||
|
||||
> 阿里云控制台中申请子账号 API Token,并配置环境变量如下
|
||||
|
||||
```bash
|
||||
export Ali_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
|
||||
export Ali_Secret="jlsdflanljkljlfdsaklkjflsa"
|
||||
```
|
||||
|
||||
## 生成证书
|
||||
|
||||
```bash
|
||||
acme.sh --issue --dns dns_ali -d example.com -d www.example.com
|
||||
```
|
||||
|
||||
## 安装证书
|
||||
|
||||
```bash
|
||||
acme.sh --installcert -d dc3.site --key-file /etc/letsencrypt/live/dc3.site/dc3.site.key --fullchain-file /etc/letsencrypt/live/dc3.site/fullchain.cer --reloadcmd "service nginx force-reload"
|
||||
```
|
||||
@@ -19,17 +19,9 @@ import { RouteRecordRaw } from 'vue-router'
|
||||
const Layout = () => import('@/components/layout/Layout.vue')
|
||||
const routes: RouteRecordRaw = {
|
||||
path: '/',
|
||||
redirect: '/home',
|
||||
redirect: '/driver',
|
||||
component: Layout,
|
||||
children: [
|
||||
{
|
||||
name: 'home',
|
||||
path: '/home',
|
||||
meta: {
|
||||
title: '首页',
|
||||
},
|
||||
component: () => import('@/views/home/Home.vue'),
|
||||
},
|
||||
{
|
||||
name: 'driver',
|
||||
path: '/driver',
|
||||
|
||||
Reference in New Issue
Block a user