Skip to content

Commit

Permalink
Update mbusd to support multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
madejackson committed Aug 6, 2024
1 parent 4050fc1 commit d9a4936
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions servapps/mbusd/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,20 @@
["8O1", "8O1: 8 databits, odd parity, 1 stoppbit"],
["8N2", "8N2: 8 databits, no parity, 2 stoppbit"]
]
},
{
"name": "exposePort",
"label": "expose Modbus-Server to local network? (insecure)",
"initialValue": false,
"type": "checkbox"
}{if Context.exposePort}
, {
"name": "exposedPort",
"label": "Which Port would you like to expose to the local network? (May NOT be used by another Service)",
"initialValue": "502",
"type": "text"
}
{/if}
],
"translation": {
"de": {
Expand All @@ -55,7 +68,9 @@
["ttyACM1", "/dev/ttyACM1 -> Serieller Anschluss 1 -> KNX, RS485 oder RS232"],
["ttyACM2", "/dev/ttyACM2 -> Serieller Anschluss 2 -> RS485 oder RS232"],
["ttyACM3", "/dev/ttyACM3 -> Serieller Anschluss 3 -> RS485 oder RS232"]
]
],
"form.exposePort.label": "Modbus-Server im lokalen Netzwerk veröffentlichen? (unsicher)",
"form.exposedPort.label": "Welchen Port möchten Sie für das lokale Netzwerk freigeben? (Darf NICHT von einem anderen Dienst verwendet werden)"
}
}
},
Expand Down Expand Up @@ -84,9 +99,12 @@
"target": "/usr/app",
"type": "volume"
}
],
"ports": [
"502:502"
] }
]
{if Context.exposePort}
, "ports": [
"{Context.exposedPort}:502"
]
{/if}
}
}
}

0 comments on commit d9a4936

Please sign in to comment.