Skip to content

Commit

Permalink
add tls
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Aug 17, 2024
1 parent 7e0f16a commit e7a8d23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/webhook-ingest/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
ports:
- "4200"
environment:
- NATS_URL=nats://nats-server:4222
- NATS_URL=tls://nats-server:4222
- SECRET=${SECRET}
depends_on:
- nats-server
Expand All @@ -16,9 +16,13 @@ services:
ports:
- "4222:4222"
command: ["--config", "/etc/nats/nats-server.conf"]
environment:
- TLS_CERT_FILE
- TLS_KEY_FILE
volumes:
- nats_data:/data
- ./nats-server.conf:/etc/nats/nats-server.conf
- /etc/letsencrypt:/etc/letsencrypt:ro
networks:
- common-network

Expand Down
6 changes: 6 additions & 0 deletions server/webhook-ingest/nats-server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ listen: "0.0.0.0:4222"
jetstream {
store_dir: "/data"
}

tls {
cert_file: $TLS_CERT_FILE
key_file: $TLS_KEY_FILE
verify_and_map: true
}

0 comments on commit e7a8d23

Please sign in to comment.