# NPM面板：反代grpc连接

- 在~/ngpm/data/nginx/proxy_host下找到对应的conf文件
- 添加以下代码
- 后续使用NPM后台面板上修改原来的配置需要重复以上步骤

    1
    2
    3
    4
    5
    6
    7
    8
    9

    location /serviceName {
      if ($content_type !~ "application/grpc") {
        return 404;
      }
      client_max_body_size 0;
      client_body_timeout 1071906480m;
      grpc_read_timeout 1071906480m;
      grpc_pass grpc://docker0:port;
    }

转载
NPM面板：反代grpc连接
https://occdn.limour.top/2075.html
Author
Limour
Posted on
July 11, 2022
Licensed under
Docker：搭建AList和Rclone，挂载OneDrive Previous
【转载】Wallabag+TTRSS+FeedMe Next

#### Search

Keyword