Skip to content

Commit

Permalink
do stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Aug 17, 2024
1 parent 5a70762 commit 612f5cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
1 change: 1 addition & 0 deletions server/webhook-ingest/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

class Settings(BaseSettings):
NATS_URL: str = "localhost"
NATS_AUTH_TOKEN: str = ""
WEBHOOK_SECRET: str = ""

class Config:
Expand Down
1 change: 1 addition & 0 deletions server/webhook-ingest/app/nats_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def __init__(self):
async def connect(self):
await self.nc.connect(
servers=settings.NATS_URL,
token=settings.NATS_AUTH_TOKEN,
verbose=True,
pedantic=True,
max_reconnect_attempts=-1,
Expand Down
22 changes: 8 additions & 14 deletions server/webhook-ingest/nats-server.conf
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# Port for internal connections (unencrypted and no auth)
listen: "0.0.0.0:5222"
listen: "0.0.0.0:4222"

jetstream {
store_dir: "/data"
}

cluster {
# Port for external connections (encrypted and auth)
listen: "0.0.0.0:4222"

tls {
cert_file: $TLS_CERT_FILE
key_file: $TLS_KEY_FILE
verify: false
}
tls {
cert_file: $TLS_CERT_FILE
key_file: $TLS_KEY_FILE
verify: false
}

authorization {
token: $NATS_AUTH_TOKEN
}
authorization {
token: $NATS_AUTH_TOKEN
}

0 comments on commit 612f5cb

Please sign in to comment.