From a32741575cca7f952f5b18a05d8ecc46428f96b1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 16 Dec 2020 15:26:27 +0100 Subject: [PATCH] Add trello migration config --- config.yml.sample | 16 +++++++++++++++- pkg/config/config.go | 5 +++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/config.yml.sample b/config.yml.sample index 61b262efe..c7b868338 100644 --- a/config.yml.sample +++ b/config.yml.sample @@ -174,7 +174,7 @@ migration: todoist: # Wheter to enable the todoist migrator or not enable: false - # The client id, required for making requests to the wunderlist api + # The client id, required for making requests to the todoist api # You need to register your vikunja instance at https://developer.todoist.com/appconsole.html to get this clientid: # The client secret, also required for making requests to the todoist api @@ -185,6 +185,20 @@ migration: # with the code obtained from the todoist api. # Note that the vikunja frontend expects this to be /migrate/todoist redirecturl: + trello: + # Wheter to enable the trello migrator or not + enable: false + # The client id, required for making requests to the trello api + # You need to register your vikunja instance at to get this + clientid: + # The client secret, also required for making requests to the trello api + clientsecret: + # The url where clients are redirected after they authorized Vikunja to access their trello cards. + # This needs to match the url you entered when registering your Vikunja instance at trello. + # This is usually the frontend url where the frontend then makes a request to /migration/trello/migrate + # with the code obtained from the trello api. + # Note that the vikunja frontend expects this to be /migrate/trello + redirecturl: avatar: # When using gravatar, this is the duration in seconds until a cached gravatar user avatar expires diff --git a/pkg/config/config.go b/pkg/config/config.go index 298ec06f0..33cd0f7ff 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -118,6 +118,10 @@ const ( MigrationTodoistClientID Key = `migration.todoist.clientid` MigrationTodoistClientSecret Key = `migration.todoist.clientsecret` MigrationTodoistRedirectURL Key = `migration.todoist.redirecturl` + MigrationTrelloEnable Key = `migration.trello.enable` + MigrationTrelloClientID Key = `migration.trello.clientid` + MigrationTrelloClientSecret Key = `migration.trello.clientsecret` + MigrationTrelloRedirectURL Key = `migration.trello.redirecturl` CorsEnable Key = `cors.enable` CorsOrigins Key = `cors.origins` @@ -288,6 +292,7 @@ func InitDefaultConfig() { // Migration MigrationWunderlistEnable.setDefault(false) MigrationTodoistEnable.setDefault(false) + MigrationTrelloEnable.setDefault(false) // Avatar AvatarGravaterExpiration.setDefault(3600) // List Backgrounds