Code Monkey home page Code Monkey logo

Comments (4)

lianglli avatar lianglli commented on June 14, 2024

开启XQUIC

  1. 需要使用root用户
    user root;

  2. H3协议默认使用TLS 1.3,使用XQUIC证书指令,配置默认H3证书

参考:
https://github.com/alibaba/tengine/blob/master/modules/ngx_http_xquic_module/README.md

image

可以打开debug级别日志,查看具体的报错信息。

from tengine.

BobFang2023 avatar BobFang2023 commented on June 14, 2024

开启XQUIC

  1. 需要使用root用户
    user root;
  2. H3协议默认使用TLS 1.3,使用XQUIC证书指令,配置默认H3证书

参考: https://github.com/alibaba/tengine/blob/master/modules/ngx_http_xquic_module/README.md

image

可以打开debug级别日志,查看具体的报错信息。

你好,我是用root用户跑的,xquic_ssl_certificate和xquic_ssl_certificate_key也在https配置内有配置,debug模式开启了,没有多余其它的报错

user  root root;
worker_processes  auto;
pid       /data/app/tengine/pid/nginx.pid;
events {
    worker_connections  65536;
    use epoll;
}

xquic_log   "pipe:rollback /data/app/tengine/logs/tengine-xquic.log baknum=10 maxsize=1G interval=1d adjust=600" debug;

http {
    ##http3
    xquic_ssl_certificate /data/app/tengine/ssl/域名.key;
    xquic_ssl_certificate_key /data/app/tengine/ssl/域名.pem;
    xquic_congestion_control bbr;
    xquic_socket_rcvbuf 5242880;
    xquic_socket_sndbuf 5242880;
    xquic_anti_amplification_limit 5;

server {
        listen 80 default_server reuseport backlog=4096;
        listen 443 default_server reuseport backlog=4096 ssl http2;
        listen 443 default_server reuseport backlog=4096 xquic;
        server_name aa.域名;

        add_header Alt-Svc 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000' always;

        error_log  /data/app/tengine/logs/error-xquic.log debug;

        ssl_certificate /data/app/tengine/ssl/域名.pem;
        ssl_certificate_key /data/app/tengine/ssl/域名.key;
        ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;

        location / {
          return 444 "quic";
        }
}

}

from tengine.

lianglli avatar lianglli commented on June 14, 2024

在配置文件main段 设置 日志指令 error_log

看下具体的报错信息

error_log "pipe:rollback /data/app/tengine/logs/tengine-error.log baknum=10 maxsize=2G interval=1d adjust=600" debug;
xquic_log "pipe:rollback /data/app/tengine/logs/tengine-xquic.log baknum=10 maxsize=1G interval=1d adjust=600" info;

image

from tengine.

BobFang2023 avatar BobFang2023 commented on June 14, 2024

在配置文件main段 设置 日志指令 error_log

看下具体的报错信息

error_log "pipe:rollback /data/app/tengine/logs/tengine-error.log baknum=10 maxsize=2G interval=1d adjust=600" debug; xquic_log "pipe:rollback /data/app/tengine/logs/tengine-xquic.log baknum=10 maxsize=1G interval=1d adjust=600" info;

image

多谢,通过开启error_log的debug模式找到原因了,是我证书配反了,已解决

from tengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.