Appearance
IPv6
平台支持 IPv6
网络访问。
nginx 配置
nginx
配置支持 Ipv6
。
配置文件 ~/conf/nginx.conf
yaml
server {
listen [::]:80; //[]中是IPv6的地址
server_name localhost;
rewrite ^(.*) https://$server_name$1 permanent;
}
server {
listen [::]:80; //[]中是IPv6的地址
server_name localhost;
rewrite ^(.*) https://$server_name$1 permanent;
}
co-service 配置
co-service
配置支持 Ipv6
。
配置文件 ~/conf/config.xml
xml
<server>
<addr>[::]</addr> //[]中是IPv6的地址,IPv4的0.0.0.0对应IPv6的地址为[::],IPv4的127.0.0.1对应IPv6的地址为[::1]
<port></port>
<http-port>6108</http-port>
<http-cors>1</http-cors>
</server>
<server>
<addr>[::]</addr> //[]中是IPv6的地址,IPv4的0.0.0.0对应IPv6的地址为[::],IPv4的127.0.0.1对应IPv6的地址为[::1]
<port></port>
<http-port>6108</http-port>
<http-cors>1</http-cors>
</server>