Skip to content
.NET 开发者指北.NET 开发者指北
CMS
.NET指北
FreeKit
Docker
关于
博客
github icon
    • Lin CMS By .NET
      • 后端准备
        • 后端快速上手
          • 相关技术
            • 前端准备
              • 开源地址
                • 博客模块线上地址
                  • 快速上手
                    • nginx 配置
                      • 配置项
                      • 开源介绍
                        • 功能模块的设计
                          • 产品设计
                            • GitHub Actions
                              • LinCms如何切换成SQL server

                              前端准备

                              calendar icon2020年2月28日timer icon大约 1 分钟word icon约 403 字

                              此页内容
                              • 开源地址
                              • 博客模块线上地址
                              • 快速上手
                              • nginx 配置
                              • 配置项

                              # 前端准备

                              # 开源地址

                              • 管理端 UI https://github.com/luoyunchong/lin-cms-vueopen in new window
                              • 用户端 UI https://github.com/luoyunchong/lin-cms-vvlogopen in new window

                              # 博客模块线上地址

                              • 本项目 swagger 地址 https://api.igeekfan.cn/swagger/index.htmlopen in new window
                              • 用户端 lin-cms-vvlog https://vvlog.igeekfan.cnopen in new window
                                • 普通用户:710277267@qq.com
                                • 密码:123qwe
                              • 管理员 lin-cms-vue https://cms.igeekfan.cn/open in new window
                                • 管理员: admin
                                • 密码:123qwe

                              # 快速上手

                              开发必备

                              • Node.js 16+open in new window
                              • pnpmopen in new window
                              # clone the project
                              git clone https://github.com/luoyunchong/lin-cms-vue.git
                              
                              npm install -g pnpm
                              
                              # install dependency
                              pnpm install
                              
                              # develop
                              pnpm run serve
                              
                              1
                              2
                              3
                              4
                              5
                              6
                              7
                              8
                              9
                              10

                              # nginx 配置

                              • http 80 部署
                              server {
                                  listen 8080;
                                  root /var/www/lin-cms-vue;
                              
                                 charset utf-8;
                                 location / {
                                     try_files $uri $uri/ /index.html;
                              
                                   }
                              
                                  error_page   500 502 503 504  /50x.html;
                                  location = /50x.html {
                                      root   html;
                                  }
                              
                              }
                              
                              1
                              2
                              3
                              4
                              5
                              6
                              7
                              8
                              9
                              10
                              11
                              12
                              13
                              14
                              15
                              16
                              • https

                              目录:/etc/nginx/conf.d 证书:也放到/etc/nginx/conf.d/cms.igeekfan.cn_nginx目录中

                              server {  
                                  listen 443  ssl;
                                  server_name cms.igeekfan.cn;
                                  ssl_certificate conf.d/cms.igeekfan.cn_nginx/cms.igeekfan.cn_bundle.crt; #证书文件名称
                                  ssl_certificate_key conf.d/cms.igeekfan.cn_nginx/cms.igeekfan.cn.key; #私钥文件名称
                                  ssl_session_timeout 5m;
                                  ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #请按照这个协议配置
                                  ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; #请按照这个套件配置,配置加密套件,写法遵循 openssl 标准。
                                  ssl_prefer_server_ciphers on;
                                  root /var/www/lin-cms-vue;
                                  location / {
                                     try_files $uri $uri/ /index.html; 
                                 }
                                      
                                  error_page   500 502 503 504  /50x.html;
                                  location = /50x.html {
                                      root   html;
                                  }
                              }
                              
                              server {
                                  listen 80;
                                  server_name cms.igeekfan.cn;
                                  return 301 https://$server_name$request_uri;
                              }
                              
                              1
                              2
                              3
                              4
                              5
                              6
                              7
                              8
                              9
                              10
                              11
                              12
                              13
                              14
                              15
                              16
                              17
                              18
                              19
                              20
                              21
                              22
                              23
                              24
                              25

                              # 配置项

                              1. 配置 api 地址: 打开配置文件 .env.development

                              # lin-cms-vvlog

                              • VUE_APP_BASE_URL 配置后端 api 地址(必填)
                              • VUE_APP_CURRENT_URL 配置当前前端地址,仅用于QQ\微信登录\GitHub快速登录回调地址

                              用户名:admin 密码 123qwe

                              # lin-cms-vue

                              • VUE_APP_BASE_URL 配置后端 api 地址(必填)
                              • VUE_APP_VVLOG_URL 配置lin-cms-vvlog运行的地址,方便跳转至lin-cms-vvlog项目

                              用户名:710277267@qq.com 密码 123qwe

                              edit icon在 GitHub 上编辑此页open in new window
                              上次编辑于: 2023/9/16 05:02:03
                              贡献者: igeekfan,luoyunchong,igeekfan,IGeekFan
                              上一页
                              相关技术
                              下一页
                              开源介绍
                              MIT Licensed | Copyright © 2021-present luoyunchong
                              苏ICP备16046457号-1

                              该应用可以安装在你的 PC 或移动设备上。这将使该 Web 应用程序外观和行为与其他应用程序相同。它将在出现在应用程序列表中,并可以固定到主屏幕,开始菜单或任务栏。此 Web 应用程序还将能够与其他应用程序和你的操作系统安全地进行交互。

                              详情