Skip to content

Commit 32487fa

Browse files
committed
fix(ui): show tunnels domain when defined
1 parent 051343b commit 32487fa

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ services:
8181
- SHELLHUB_PAYWALL=${SHELLHUB_PAYWALL}
8282
- SHELLHUB_CONNECTOR=${SHELLHUB_CONNECTOR}
8383
- SHELLHUB_TUNNELS=${SHELLHUB_TUNNELS}
84+
- SHELLHUB_TUNNELS_DOMAIN=${SHELLHUB_TUNNELS_DOMAIN}
8485
networks:
8586
- shellhub
8687
healthcheck:

ui/src/components/Tunnels/TunnelList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const store = useStore();
7676
const route = useRoute();
7777
const tunnelList = computed(() => store.getters["tunnels/listTunnels"]);
7878
const deviceId = computed(() => route.params.id);
79-
const url = ref(window.location.host);
79+
const url = ref(envVariables.tunnelsDomain || window.location.host);
8080
const urlProtocol = ref(window.location.protocol);
8181
8282
const getTunnels = async () => {

ui/src/envVariables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const envVariables = {
1919
isEnterprise: (window.env || process.env).VUE_APP_SHELLHUB_ENTERPRISE === "true",
2020
hasConnector: (window.env || process.env).VUE_APP_SHELLHUB_CONNECTOR === "true",
2121
hasTunnels: (window.env || process.env).VUE_APP_SHELLHUB_TUNNELS === "true",
22+
tunnelsDomain: (window.env || process.env).VUE_APP_SHELLHUB_TUNNELS_DOMAIN,
2223
isCloud: (window.env || process.env).VUE_APP_SHELLHUB_CLOUD === "true",
2324
isCommunity: (window.env || process.env).VUE_APP_SHELLHUB_CLOUD === "false" && (window.env || process.env).VUE_APP_SHELLHUB_ENTERPRISE === "false",
2425
premiumPaywall: (window.env || process.env).VUE_APP_SHELLHUB_PAYWALL === "true",

0 commit comments

Comments
 (0)