caddy php wss

app.domain.com {
# 设置请求头

  request_header x-request-id "{http.request.uuid}"

  # 设置响应头

   header * x-request-id "{http.request.uuid}"

  # 压缩文件

 encode zstd gzip
  root * /var/www/app/public
  php_fastcgi unix//var/run/php/php7.4-fpm.sock {
     split .php
     index index.php
  }
  file_server

  reverse_proxy /ws 127.0.0.1:2346
}


https://cloud.tencent.com/developer/article/2148186?from=15425

caddy php wss

posted @ 2022-09-11 19:06  花泪哲  阅读(50)  评论(0编辑  收藏  举报