update for new service

This commit is contained in:
wh1te909
2021-11-13 21:30:01 +00:00
parent c9ac158d25
commit 6a9bc56723
13 changed files with 76 additions and 18 deletions

Binary file not shown.

View File

@@ -27,7 +27,7 @@ func setupNatsOptions(key string) []nats.Option {
func GetConfig(cfg string) (db *sqlx.DB, r DjangoConfig, err error) {
if cfg == "" {
cfg = "/rmm/api/tacticalrmm/rmm-go.conf"
cfg = "/rmm/api/tacticalrmm/nats-api.conf"
if !trmm.FileExists(cfg) {
err = errors.New("unable to find config file")
return