rego-tunnel: add configurable hostshare dir
Some checks failed
Test / test (push) Has been cancelled
Renovate / renovate (push) Has been cancelled

This commit is contained in:
2025-12-29 01:41:37 +00:00
parent 0020c539ea
commit 302c52c784
3 changed files with 16 additions and 2 deletions

View File

@@ -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"]

View File

@@ -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,

View File

@@ -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: