diff --git a/apps/rego-tunnel/config.json b/apps/rego-tunnel/config.json index 78d7727..a3e5a7d 100755 --- a/apps/rego-tunnel/config.json +++ b/apps/rego-tunnel/config.json @@ -111,6 +111,15 @@ "required": true, "env_variable": "LEASE_TIME", "default": "12h" + }, + { + "type": "text", + "label": "Host share directory", + "hint": "Host path mounted into the container at /hostshare and exported into the VM", + "placeholder": "${APP_DATA_DIR}", + "required": true, + "env_variable": "HOSTSHARE_DIR", + "default": "/etc/runtipi/app-data/runtipi/rego-tunnel/hostshare" } ], "supported_architectures": ["amd64"] diff --git a/apps/rego-tunnel/docker-compose.json b/apps/rego-tunnel/docker-compose.json index fad74f2..fc44962 100755 --- a/apps/rego-tunnel/docker-compose.json +++ b/apps/rego-tunnel/docker-compose.json @@ -48,6 +48,10 @@ { "key": "LEASE_TIME", "value": "${LEASE_TIME}" + }, + { + "key": "HOSTSHARE_DIR", + "value": "${HOSTSHARE_DIR}" } ], "internalPort": 8006, @@ -67,7 +71,7 @@ "private": false }, { - "hostPath": "${APP_DATA_DIR}", + "hostPath": "${HOSTSHARE_DIR}", "containerPath": "/hostshare", "readOnly": false, "shared": false, diff --git a/apps/rego-tunnel/docker-compose.yml b/apps/rego-tunnel/docker-compose.yml index a862938..890bd27 100755 --- a/apps/rego-tunnel/docker-compose.yml +++ b/apps/rego-tunnel/docker-compose.yml @@ -24,10 +24,11 @@ services: - VM_MAC=${VM_MAC:-52:54:00:12:34:56} - DNS_SERVERS=${DNS_SERVERS:-1.1.1.1,8.8.8.8} - LEASE_TIME=${LEASE_TIME:-12h} + - HOSTSHARE_DIR=${HOSTSHARE_DIR:-${APP_DATA_DIR}} volumes: - /etc/runtipi/user-config/runtipi/rego-tunnel/storage/linux-vm.qcow2:/vm/linux-vm.qcow2 - /etc/runtipi/user-config/runtipi/rego-tunnel/shared:/shared - - ${APP_DATA_DIR}:/hostshare + - ${HOSTSHARE_DIR:-${APP_DATA_DIR}}:/hostshare networks: - tipi_main_network sysctls: