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

Docker以host模式部署怎么设置监听端口 #844

Open
LunaticXJ opened this issue Jun 2, 2024 · 3 comments
Open

Docker以host模式部署怎么设置监听端口 #844

LunaticXJ opened this issue Jun 2, 2024 · 3 comments

Comments

@LunaticXJ
Copy link

目前Docker以桥接方式部署,外网IPV6访问不了,想说以host方式部署,但是默认的监听端口怎么改成非80端口,有环境变量可以设置吗,或者Docker版本的默认监听端口可否不设置为80?

@LunaticXJ
Copy link
Author

server {
listen 80;
server_name localhost;

配置文件是不是要加一行
listen [::]:80;
才能支持IPv6

@LunaticXJ
Copy link
Author

用群晖自带的反向代理搞定了

@sailorwee
Copy link

怎么搞定的

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