ledc/go-fastdfs

Webman plugin ledc/go-fastdfs

v1.0.4 2023-08-09 01:31 UTC

This package is auto-updated.

Last update: 2024-05-09 03:09:19 UTC


README

安装

composer require ledc/go-fastdfs

简介

基于webman编写的用户自定义验证接口,适用于go-fastdfs分布式文件系统auth_token验证。

配置

  • 项目目录下:/config/plugin/ledc/go-fastdfs/app.php

  • Nginx配置

location /upload/auth {
  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 "";
  proxy_pass http://127.0.0.1:8787;
}

go-fastdfs

基于http协议的分布式文件系统,它基于大道至简的设计理念,一切从简设计,使得它的运维及扩展变得更加简单,它具有高性能、高可靠、无中心、免维护等优点。