crz 发表于 2022-11-26 21:49:14

官方UI添加nginx http2支持

官方UI使用nginx http2时会报错,似乎是lua模块不支持,通过转发请求来兼容
1. 添加nginx配置(略)
2. 刷机后添加证书等配置(略)
3. 刷机后修改文件 /etc/nginx/conf.d/gl.conf
location = /rpc {
      if ($scheme = https) {
            proxy_pass http://$host;
      }
      if ($scheme = http){
            content_by_lua_file /usr/share/gl-ngx/oui-rpc.lua;
      }
    }

萝卜大侠 发表于 2022-11-27 21:34:56

你这是解决问题了还是没解决呀?

crz 发表于 2022-11-27 22:12:21

萝卜大侠 发表于 2022-11-27 21:34
你这是解决问题了还是没解决呀?

没解决根本问题,但是能用

nihaolai 发表于 2023-1-14 02:34:14

页: [1]
查看完整版本: 官方UI添加nginx http2支持