Howto: move from api file config to database config


#1

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/usRez5xij7w Import Date: 2016-01-19 21:02:57 +0000.
Sender:Thorsten Zenker.
Date:Tuesday, 25 November 2014 14:22:28 UTC.

testing tyk and
api configuration is in a file under the apps directory.
tyk.conf has: “use_db_app_configs”:false

tyk is working now in a “transparent proxy” mode.

now it is wanted to move the api config from the json file to the database and turn
“use_db_app_configs”:false to “use_db_app_configs”:true.

How can this be done?


#2

Imported Google Group message.
Sender:Martin Buhr.
Date:Wednesday, 26 November 2014 11:49:51 UTC.

Hi Thorsten,

We’ve now released version 0.8 of the Tyk Dashboard, which enables importing API Definitions from a file using a simple interface, you can see all the details here: http://tyk.io/blog/tyk-dashboard-0-8-released/

Alternatively, as suggested in my email, manually reating the defintitions in the tyk_apps collection in your mongo database will get Tyk to use a database-backed version of your configuration.

Thanks,
Martin