Utoljára aktív 1729494612

Readme.md Eredeti

在相应的 server 节点下粘贴如下内容:

    location / {
        proxy_pass http://127.0.0.1:28080/;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header REMOTE-HOST $remote_addr;
        http2_push_preload on;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_http_version 1.1;
    }

其中,$connection_upgrade 需要在 nginx.conf 文件中的 http 节点内配置如下内容:

    map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
    }