Compare commits

..

3 Commits

Author SHA1 Message Date
61c9a80a09 notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-25 14:53:09 +03:00
70f6aa0a7e added port configuration to default config...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-25 13:28:10 +03:00
2b2073d624 tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-25 13:19:26 +03:00
2 changed files with 24 additions and 3 deletions

View File

@ -457,15 +457,20 @@ saveConfig(){
saveLastRunConfig(){
local cfg=$LAST_RUN_CONFIG
local ct_cfg
if ! [ -z $ID ] && ! [ -z $CTHOSTNAME ] ; then
local ct_cfg=$ID-$CTHOSTNAME.cfg
echo "# Saving config to: $cfg and $ct_cfg"
fi
echo "# Saving config to: $cfg ${ct_cfg:+and $ct_cfg}"
{
echo "#"
echo "# This file is auto-generated, any changes here will be overwritten."
echo "#"
} > "$cfg"
saveConfig -d -a "$cfg" ${XREAD_VARS[@]}
if ! [ -z ${ct_cfg} ] ; then
cp "$cfg" "$ct_cfg"
fi
}

View File

@ -42,6 +42,22 @@ DFL_WAN_GATE=192.168.1.252
DFL_WAN_SSH_IP=192.168.1.102/24
# Port configuration...
#
# If the device has multiple ports it is recommended to select the WAN
# and ADMIN on the opposite ends as to minimize the chance of erronius
# connections.
#
# Administration port (ADMIN)
# This is mainly used for setup and for sirect access to the internal
# ADMIN network.
DFL_ADMIN_PORT=enp2s0
# General connection port (WAN)
# This is used to communicate with the services installed.
DFL_WAN_PORT=enp5s0
# Web app/service domain configuration
#
# Here two optional variables are provided per service: