1 Star 0 Fork 1

binkuolo / wechat-auth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

wechat-auth

介绍

微信授权单公众号多站点解决方案

软件架构

软件架构说明

安装教程

  1. clone 项目
  2. yarn 或者 npm install
  3. yarn start 获取 npm run start

使用说明

  1. 项目配置参考umi
  2. 打包项目生产的dist文件夹目录上传到nginx站点目录

Nginx配置

server {
  listen 80;
  listen 443;
  server_name ***.com;
  index index.html index.php;
  root /home/www/wechat/dist;
  # 以下3行匹配不同到前缀请求将发到不同的api服务器、配置多个完成多站点授权
  location /api前缀 {
    proxy_pass https://***.com/实际api前缀;
  }
  location / {
     try_files $uri $uri/ /index.html;
  }
  # 不启用ssl可以注释以下4行 和 上面listen 433
  ssl on;
  ssl_certificate crt证书实际路径;
  ssl_certificate_key 证书钥匙实际路径;
  ssl_session_timeout  5m;
}

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
MIT License Copyright (c) 2021 langengel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

微信授权单公众号多站点解决方案 展开 收起
TypeScript 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/binkuolo/wechat-auth.git
git@gitee.com:binkuolo/wechat-auth.git
binkuolo
wechat-auth
wechat-auth
main

搜索帮助