去评论
dz插件网

有熟悉minio的大佬没有,帮我看一个错误

迪巴拉
2024/02/11 23:26:31
我用flarum 上传minio....为无名无法上传,出现诡异的错误,

我明明域名是 Minio 域是 example.com。为什么会变成 img.example.com?

上传是这样的规定
  1. FoF UploadContent Delivery URL (prefixes files)https://example.xyzkeysecretbucket imgEndpoint https://example.xyz


错误代码是
  1. flarum.ERROR: exception 'Aws\S3\Exception\S3Exception' with message 'Error executing "PutObject" on "https://img.example.xyz/2024-02-11/1707648155-636240-2.png"; AWS HTTP error: cURL error 6: Could not resolve host: img.example.xyz (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://img.example.xyz/2024-02-11/1707648155-636240-2.png'GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: img.example.xyz (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://img.example.xyz/2024-02-11/1707648155-636240-2.png in /usr/share/nginx/html/flarum/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:210Stack trace:Next Aws\S3\Exception\S3Exception: Error executing "PutObject" on "https://img.example.xyz/2024-02-11/1707648155-636240-2.png"; AWS HTTP error: cURL error 6: Could not resolve host: img.example.xyz (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://img.example.xyz/2024-02-11/1707648155-636240-2.png in /usr/share/nginx/html/flarum/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php:196Stack trace: