You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The network environment consists of one internal host and two testing hosts. One testing host (B) is on the same network as the internal server (A), while the other testing host (C) is on a different network. All three machines can access the internet normally.
When I deployed OpenIM using Docker, the HTTP protocol was functioning properly within the internal network. According to the configuration requirements for the website's Nginx deployment, I modified the domain name and certificate. Host C can access the PC-Web page at https://web.datashare.top:1443/ via the internet, but the login is consistently unsuccessful. Upon inspecting the API request, I found that it is attempting to access https://web.datashare.top/chat/account/login, but is missing port information. Below is my Nginx configuration file:
upstream msg_gateway {
server 127.0.0.1:10001;
}
upstream im_api {
server 127.0.0.1:10002;
}
upstream im_chat_api {
server 127.0.0.1:10008;
}
upstream im_admin_api {
server 127.0.0.1:10009;
}
upstream minio_s3_2 {
server 127.0.0.1:10005;
}
upstream pc_web {
server 127.0.0.1:11001;
}
upstream openim_admin {
server 127.0.0.1:11002;
}
OpenIM Server Version
v3.8.1
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Docker Deployment
Issue Description and Steps to Reproduce
The network environment consists of one internal host and two testing hosts. One testing host (B) is on the same network as the internal server (A), while the other testing host (C) is on a different network. All three machines can access the internet normally.
When I deployed OpenIM using Docker, the HTTP protocol was functioning properly within the internal network. According to the configuration requirements for the website's Nginx deployment, I modified the domain name and certificate. Host C can access the PC-Web page at https://web.datashare.top:1443/ via the internet, but the login is consistently unsuccessful. Upon inspecting the API request, I found that it is attempting to access https://web.datashare.top/chat/account/login, but is missing port information. Below is my Nginx configuration file:
upstream msg_gateway {
server 127.0.0.1:10001;
}
upstream im_api {
server 127.0.0.1:10002;
}
upstream im_chat_api {
server 127.0.0.1:10008;
}
upstream im_admin_api {
server 127.0.0.1:10009;
}
upstream minio_s3_2 {
server 127.0.0.1:10005;
}
upstream pc_web {
server 127.0.0.1:11001;
}
upstream openim_admin {
server 127.0.0.1:11002;
}
server {
listen 1443 ssl;
server_name web.datashare.top;
ssl_certificate "/ext/server.crt";
ssl_certificate_key "/ext/server.key";
}
server {
listen 1443 ssl;
server_name admin.datashare.top;
ssl_certificate "/ext/server.crt";
ssl_certificate_key "/ext/server.key";
}
server {
listen 80;
server_name web.datashare.top;
rewrite ^(.*)$ https://$host$1 permanent;
#return 301 https://$host:1443$request_uri;
}
Screenshots Link
No response
The text was updated successfully, but these errors were encountered: