ledc/likeadmin

Webman插件ledc/likeadmin,兼容likeadmin用户

v8.1.15 2024-06-19 03:41 UTC

This package is auto-updated.

Last update: 2024-09-19 04:13:03 UTC


README

初衷

复用likeadmin的基础功能和手机端uniapp源码,提高开发效率;

使用常驻内存的webman来开发新功能。

安装插件

composer require ledc/likeadmin

Nginx伪静态

使用以下命令生成nginx配置文件:

php webman likeadmin:nginx likeadmin_proxy

生成的配置文件示例:

location ~ ^/(likeadmin|like)
{
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $host;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_http_version 1.1;
  proxy_set_header Connection "";
  if (!-f $request_filename){
    proxy_pass http://127.0.0.1:8787;
  }
}

原理

配置Nginx伪静态后,所有以likeadminlike开头的接口请求都由webman处理。

自定义前缀

修改likeadminlike

1.修改config/plugin/ledc/likeadmin/middleware.php

2.使用命令重新生成nginx配置文件

其他

仓库地址:https://github.com/ledccn/likeadmin