-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58bdb73
commit 1f8d168
Showing
4 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import os | ||
|
||
# Configuration for UDP connections | ||
SERVER_IP = "mopp_chat_server" #"127.0.0.1" # "10.101.101.14" | ||
#SERVER_IP = "10.101.101.14" #"127.0.0.1" # "" | ||
UDP_PORT = 7373 | ||
SERVER_IP = os.environ.get('SERVER_IP', "mopp_chat_server") | ||
UDP_PORT = int(os.environ.get('UDP_PORT', "7373")) | ||
|
||
# Configuration for Chat Server | ||
CLIENT_TIMEOUT = 3000 | ||
MAX_CLIENTS = 100 | ||
KEEPALIVE = 10 | ||
CHAT_WPM = 20 | ||
CLIENT_TIMEOUT = int(os.environ.get('CLIENT_TIMEOUT', "300")) | ||
MAX_CLIENTS = int(os.environ.get('MAX_CLIENTS', "100")) | ||
KEEPALIVE = int(os.environ.get('KEEPALIVE', "10")) | ||
CHAT_WPM = int(os.environ.get('CHAT_WPM', "20")) | ||
|
||
# MQTT configuration | ||
MQTT_HOST = "broker.hivemq.com" | ||
MQTT_PORT = 1883 | ||
|
||
TOPIC = "/moip/udp2mqtt/mopp" | ||
TOPICDURATIONS = "/moip/udp2mqtt/durations" | ||
MQTT_HOST = os.environ.get('MQTT_HOST', "broker.hivemq.com") | ||
MQTT_PORT = int(os.environ.get('MQTT_PORT', "1883")) | ||
MQTT_TOPIC = os.environ.get('MQTT_TOPIC', "/moip/udp2mqtt/durations") | ||
|
||
# Internal configuration with code dependencies | ||
MORSE_JSON_VERSION = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters