From c2d2b757573ce40a843a840f6d92916e527ef973 Mon Sep 17 00:00:00 2001 From: MrNaif2018 Date: Sat, 6 Mar 2021 23:53:30 +0300 Subject: [PATCH] Load onion url from API only --- docker-entrypoint.sh | 7 ------- nuxt.config.js | 1 - store/index.js | 3 +-- version.js | 2 +- 4 files changed, 2 insertions(+), 11 deletions(-) delete mode 100755 docker-entrypoint.sh diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh deleted file mode 100755 index 662a1d8..0000000 --- a/docker-entrypoint.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env sh -SERVICE_FILE=/var/lib/tor/hidden_services/BitcartCC-Merchants-API/hostname -if [ -f $SERVICE_FILE ]; then - read -r BITCART_STORE_API_ONION_URL < $SERVICE_FILE - export BITCART_STORE_API_ONION_URL="http://$BITCART_STORE_API_ONION_URL" -fi -yarn start \ No newline at end of file diff --git a/nuxt.config.js b/nuxt.config.js index 54e5349..f59c024 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -43,7 +43,6 @@ export default { */ publicRuntimeConfig: { URL: process.env.BITCART_STORE_API_URL || "http://localhost:8000", - ONION_URL: process.env.BITCART_STORE_API_ONION_URL, SOCKS_PROXY: process.env.BITCART_STORE_SOCKS_PROXY, }, /* diff --git a/store/index.js b/store/index.js index c376caa..4920996 100644 --- a/store/index.js +++ b/store/index.js @@ -43,7 +43,7 @@ export const getters = { }, apiOnionURL({ services, env }) { const service = services["BitcartCC Merchants API"] - return env.ONION_URL ? env.ONION_URL : service ? service.hostname : "" + return service ? service.hostname : "" }, apiURL({ onion, env }, { apiOnionURL }) { return onion && apiOnionURL ? apiOnionURL : env.URL @@ -65,7 +65,6 @@ export const actions = { loadEnv({ commit }, { env, req }) { commit("setEnv", { URL: env.URL, - ONION_URL: env.ONION_URL, SOCKS_PROXY: env.SOCKS_PROXY, }) if (req) { diff --git a/version.js b/version.js index f721cee..15eecfa 100644 --- a/version.js +++ b/version.js @@ -1,3 +1,3 @@ -const VERSION = "0.3.0.1" +const VERSION = "0.3.1.0" export default VERSION