dendrite/setup/jetstream
Paige Thompson 1e0e935699
add option for credentials file for NATS; more info: https://docs.nat… (#3415)
Not 100% on how you would want to test this; you would need a NATS
server configured with NKey:

https://docs.nats.io/using-nats/developer/connecting/creds

This was tested with Synadia's free NATS SaaS and it does appear to be
working, however there's an issue with how NATS is used in general:

```
time="2024-09-10T14:40:05.105105731Z" level=fatal msg="Unable to add in-memory stream" error="nats: account requires a stream config to have max bytes set" stream=DendriteInputRoomEvent subjects="[DendriteInputRoomEvent DendriteInputRoomEvent.>]"
```

I tried creating the topic manually, however dendrite insists on
deleting/recreating the topic, so getting this to work is an issue I'm
going ot have to deal with later unless somebody gets to it before then.

If you feel more competent than me and wanna draw from this PR as an
example (if you have another way you'd prefer to see this done) go ahead
feel free I just wanna see it get done and I'm not particularly good at
working with golang.

Signed-off-by: `Paige Thompson <paige@paige.bio>`
2024-09-10 21:28:04 +02:00
..
helpers.go Use `t.TempDir` for SQLite databases, so tests don't rip out each others databases (#2950) 2023-01-23 13:17:15 +01:00
log.go Unify logging by using logrus for jetstream logs (#2976) 2023-02-24 08:56:53 +01:00
nats.go add option for credentials file for NATS; more info: https://docs.nat… (#3415) 2024-09-10 21:28:04 +02:00
streams.go Introduce a new stream for the appservice consumer (#3277) 2023-12-12 12:13:55 +01:00