From c636bf36ad062d1daf1796d236f4582febe57cd3 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 19 Nov 2021 20:53:18 +0100 Subject: [PATCH] config WALLET_AUTH_URL --- admin/.env.dist | 2 ++ admin/src/config/index.js | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 admin/.env.dist diff --git a/admin/.env.dist b/admin/.env.dist new file mode 100644 index 000000000..a056837ab --- /dev/null +++ b/admin/.env.dist @@ -0,0 +1,2 @@ +GRAPHQL_URI=http://localhost:4000/graphql +WALLET_AUTH_URL=http://localhost/vue/authenticate?token=$1 \ No newline at end of file diff --git a/admin/src/config/index.js b/admin/src/config/index.js index eab63e903..a6c728498 100644 --- a/admin/src/config/index.js +++ b/admin/src/config/index.js @@ -17,8 +17,9 @@ const environment = { PRODUCTION: process.env.NODE_ENV === 'production' || false, } -const server = { +const endpoints = { GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000/graphql', + WALLET_AUTH_URL: process.env.WALLET_AUTH_URL || 'http://localhost:3000/vue/authenticate?token=$1' } const options = {} @@ -26,7 +27,7 @@ const options = {} const CONFIG = { ...version, ...environment, - ...server, + ...endpoints, ...options, }