This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bbbmiddleware: add hsmserialport to config (#288)
Because: * The HSM serial port (default: /dev/ttyS2) needs to be passed by command line to the bbbmiddleware. * This is what the /etc/bbbmiddleware/bbbmiddleware.conf is for, so the configuration is stored in Redis and loaded as environment variable into systemd unit. This commit: * adds Redis keys bbbmiddleware:datadir and bbbmiddleware:hsmserialport * adds these to the config template bbbmiddleware.conf.template * loads them as env variables and passes them to the binary as cli arguments in the systemd unit
- Loading branch information
Showing
3 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{ #output: /etc/bbbmiddleware/bbbmiddleware.conf }} | ||
DATADIR={{ middleware:datadir #default: /data/bbbmiddleware }} | ||
HSMSERIALPORT={{ middleware:hsmserialport #default: /dev/ttyS2 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters