Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

聊天服务器不可用,总是让我重新开始 #74

Closed
danielchenming opened this issue May 25, 2023 · 8 comments
Closed

聊天服务器不可用,总是让我重新开始 #74

danielchenming opened this issue May 25, 2023 · 8 comments

Comments

@danielchenming
Copy link

image image

如题哈,使用docker创建了容器启动,然后用nginx做了证书加载

@adams549659584
Copy link
Owner

服务器可以直连 www.bing.com 吧?参考下 #71

@danielchenming
Copy link
Author

服务器可以直连 www.bing.com 吧?参考下 #71

我用的是aws的首尔云服务,我看了他的说是要配置X-Forwarded-For,但是他没写配置,截图还只有一半,心酸。。。

@danielchenming
Copy link
Author

服务器可以直连 www.bing.com 吧?参考下 #71

大佬有没得空,我服务器发你帮我搞下哈

@danielchenming danielchenming changed the title 聊天服务器无法创建 聊天服务器不可用,总是让我重新开始 May 25, 2023
@danielchenming
Copy link
Author

/sydney/ChatHub
image 按照上面的配置了,直接nginx起不来了,哭

@adams549659584
Copy link
Owner

image
这个也注释掉,报错应该是这行吧?

@danielchenming
Copy link
Author

image 这个也注释掉,报错应该是这行吧?

image

@danielchenming
Copy link
Author

image 这个也注释掉,报错应该是这行吧?

大佬,你这边也是用nginx配置的么?要不你把你的 /etc/nginx/ 目录拷贝一份我?

@adams549659584
Copy link
Owner

adams549659584 commented May 25, 2023

主要代码就这点,其他保留你自己的就好

location /sydney/ChatHub {
    proxy_pass http://127.0.0.1:8080;
    proxy_http_version                 1.1;
    proxy_set_header Upgrade           $http_upgrade;
    proxy_set_header Connection        $connection_upgrade;
    proxy_set_header Host              $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Host  $host;
    proxy_set_header X-Forwarded-Port  $server_port;
}

location / {
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Host              $host;    
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Host  $host;
    proxy_set_header X-Forwarded-Port  $server_port;
} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants