motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.79k stars 317 forks source link

Configuration with mongo doesn't load api volume #343

Closed sromerotech closed 6 years ago

sromerotech commented 6 years ago

When I configure Janus with mongo :

[database]
  dsn = "mongodb://janus-database:27017/janus"

files on ./apis:/etc/janus/apis volume are not automatically loaded.

Expected behavior:

Api files should be read from volume like when janus is configured with

[database]
  dsn = "file:///etc/janus"

Janus version: last OS and version: linux ubuntu

vgarvardt commented 6 years ago

Current behavior is correct - you may have only one source of APIs - either filesystem or mongodb, mixed/multiple databases are not supported.