Skip to content

Commit

Permalink
more port updates in various places
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Mar 28, 2020
1 parent 23106c2 commit 075c90d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chatbot/python/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def exit_gracefully(signo, stack_frame):
purpose = "Tino, Tinode's chatbot."
print(purpose)
parser = argparse.ArgumentParser(description=purpose)
parser.add_argument('--host', default='localhost:6061', help='address of Tinode server gRPC endpoint')
parser.add_argument('--host', default='localhost:16060', help='address of Tinode server gRPC endpoint')
parser.add_argument('--ssl', action='store_true', help='use SSL to connect to the server')
parser.add_argument('--ssl-host', help='SSL host name to use instead of default (useful for connecting to localhost)')
parser.add_argument('--listen', default='0.0.0.0:40051', help='address to listen on for incoming Plugin API calls')
Expand Down
2 changes: 1 addition & 1 deletion docker/chatbot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM python:3.7-slim

ARG VERSION=0.16
ARG LOGIN_AS=
ARG TINODE_HOST=tinode-srv:6061
ARG TINODE_HOST=tinode-srv:16060
ENV VERSION=$VERSION
ARG BINVERS=$VERSION

Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose/single-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ x-tinode-env-vars: &tinode-env-vars
# "IOS_UNIV_LINKS_APP_ID": "<ios universal links app id>"

x-exporter-env-vars: &exporter-env-vars
"TINODE_ADDR": "http://tinode.host:18080/stats/expvar/"
"TINODE_ADDR": "http://tinode.host:6060/stats/expvar/"
# InfluxDB configation:
"SERVE_FOR": "influxdb"
"INFLUXDB_VERSION": 1.7
Expand Down Expand Up @@ -81,7 +81,7 @@ services:
# # Logs directory.
# - <path to your tinode-0 logs directory>:/var/log
ports:
- "6060:18080"
- "6060:6060"
environment:
<< : *tinode-env-vars
"RESET_DB": ${RESET_DB:-false}
Expand All @@ -102,4 +102,4 @@ services:
- tinode-0:tinode.host
environment:
<< : *exporter-env-vars
"WAIT_FOR": "tinode-0:18080"
"WAIT_FOR": "tinode-0:6060"
2 changes: 1 addition & 1 deletion docker/tinode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ RUN chmod +x credentials.sh
ENTRYPOINT ./entrypoint.sh

# HTTP, gRPC, cluster ports
EXPOSE 6060 16060 12000-12002
EXPOSE 6060 16060 12000-12003
2 changes: 1 addition & 1 deletion server/tinode.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// TCP host:port or unix:/path/to/socket to listen for gRPC clients.
// Leave blank to disable gRPC support.
// Could be overridden from the command line with --grpc_listen.
"grpc_listen": ":6061",
"grpc_listen": ":16060",

// Enable handling of gRPC keepalives https://github.com/grpc/grpc/blob/master/doc/keepalive.md
// This sets server's GRPC_ARG_KEEPALIVE_TIME_MS to 60 seconds instead of the default 2 hours.
Expand Down

0 comments on commit 075c90d

Please sign in to comment.