rego-tunnel: add configurable hostshare dir
This commit is contained in:
@@ -111,6 +111,15 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"env_variable": "LEASE_TIME",
|
"env_variable": "LEASE_TIME",
|
||||||
"default": "12h"
|
"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"]
|
"supported_architectures": ["amd64"]
|
||||||
|
|||||||
@@ -48,6 +48,10 @@
|
|||||||
{
|
{
|
||||||
"key": "LEASE_TIME",
|
"key": "LEASE_TIME",
|
||||||
"value": "${LEASE_TIME}"
|
"value": "${LEASE_TIME}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "HOSTSHARE_DIR",
|
||||||
|
"value": "${HOSTSHARE_DIR}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"internalPort": 8006,
|
"internalPort": 8006,
|
||||||
@@ -67,7 +71,7 @@
|
|||||||
"private": false
|
"private": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"hostPath": "${APP_DATA_DIR}",
|
"hostPath": "${HOSTSHARE_DIR}",
|
||||||
"containerPath": "/hostshare",
|
"containerPath": "/hostshare",
|
||||||
"readOnly": false,
|
"readOnly": false,
|
||||||
"shared": false,
|
"shared": false,
|
||||||
|
|||||||
@@ -24,10 +24,11 @@ services:
|
|||||||
- VM_MAC=${VM_MAC:-52:54:00:12:34:56}
|
- VM_MAC=${VM_MAC:-52:54:00:12:34:56}
|
||||||
- DNS_SERVERS=${DNS_SERVERS:-1.1.1.1,8.8.8.8}
|
- DNS_SERVERS=${DNS_SERVERS:-1.1.1.1,8.8.8.8}
|
||||||
- LEASE_TIME=${LEASE_TIME:-12h}
|
- LEASE_TIME=${LEASE_TIME:-12h}
|
||||||
|
- HOSTSHARE_DIR=${HOSTSHARE_DIR:-${APP_DATA_DIR}}
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/runtipi/user-config/runtipi/rego-tunnel/storage/linux-vm.qcow2:/vm/linux-vm.qcow2
|
- /etc/runtipi/user-config/runtipi/rego-tunnel/storage/linux-vm.qcow2:/vm/linux-vm.qcow2
|
||||||
- /etc/runtipi/user-config/runtipi/rego-tunnel/shared:/shared
|
- /etc/runtipi/user-config/runtipi/rego-tunnel/shared:/shared
|
||||||
- ${APP_DATA_DIR}:/hostshare
|
- ${HOSTSHARE_DIR:-${APP_DATA_DIR}}:/hostshare
|
||||||
networks:
|
networks:
|
||||||
- tipi_main_network
|
- tipi_main_network
|
||||||
sysctls:
|
sysctls:
|
||||||
|
|||||||
Reference in New Issue
Block a user