Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable reconnect #133

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
config/development.json
out
yarn-error.log
local-data/
10 changes: 9 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"mqtt_client": {
"num_retries": 5,
"retry_after_minutes": 10
"retry_after_minutes": 1
},
"grpc": {
"port": 3925,
Expand All @@ -19,6 +19,14 @@
"websocket": {
"port": 5173
},
"redis": {
"host": "localhost",
"port": 6379,
"username": "worker",
"password": "somepassword",
"db": 0,
"queue": "mqtt"
},
"jwt": {
"secret": "OH GOD THIS IS SO INSECURE PLS CHANGE ME",
"algorithm": "HS256",
Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.9"

services:

integration:
Expand All @@ -25,6 +23,15 @@ services:
}
}

redis-stack:
image: redis/redis-stack:latest
volumes:
- ./local-redis-stack.conf:/redis-stack.conf
- ./local-data:/data
ports:
- 6379:6379
- 8001:8001

db:
image: mongo:5
container_name: osem-dev-mongo
Expand Down
33 changes: 33 additions & 0 deletions local-redis-stack.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf

# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
# 1gb => 1024*1024*1024 bytes
#
# units are case insensitive so 1GB 1Gb 1gB are all the same.

################################## NETWORK #####################################

port 6379

############################## APPEND ONLY MODE ###############################

appendonly yes

################################## SECURITY ###################################

user queue on +@all -@dangerous +INFO ~bull:mqtt:* >somepassword
user worker on +@all -@dangerous +INFO +CLIENT ~bull:mqtt:* >somepassword

requirepass super-secret
Loading