Skip to content

Commit 890d04c

Browse files
committed
Listen for webadmin in a port number lower than any other
In the docker-desktop and podman-desktop, when user clicks their "Open Browser" buttons, those apps open a browser with / URL and the lowest exposed port number.
1 parent 5f46c05 commit 890d04c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ecs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ADD --chown=ejabberd:ejabberd https://download.process-one.net/cacert.pem conf/c
115115
# Setup runtime environment
116116
USER ejabberd
117117
VOLUME ["$HOME/database","$HOME/conf","$HOME/logs","$HOME/upload"]
118-
EXPOSE 1883 4369-4399 5222 5269 5280 5443
118+
EXPOSE 1880 1883 4369-4399 5222 5269 5280 5443
119119

120120
ENTRYPOINT ["/sbin/tini","--","/home/ejabberd/bin/ejabberdctl"]
121121
CMD ["foreground"]

ecs/conf/ejabberd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ define_macro:
2222
PORT_S2S: 5269
2323
PORT_HTTP_TLS: 5443
2424
PORT_HTTP: 5280
25+
PORT_BROWSER: 1880
2526
PORT_STUN: 5478
2627
PORT_MQTT: 1883
2728
PORT_PROXY65: 7777
@@ -85,6 +86,12 @@ listen:
8586
module: ejabberd_http
8687
request_handlers:
8788
/admin: ejabberd_web_admin
89+
-
90+
port: PORT_BROWSER
91+
ip: "::"
92+
module: ejabberd_http
93+
request_handlers:
94+
/: ejabberd_web_admin
8895
-
8996
port: PORT_MQTT
9097
ip: "::"

0 commit comments

Comments
 (0)