diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-05-13 14:10:01 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-05-13 14:10:01 +0200 |
commit | 38b6d77561c87cb427b21b811ce10208f2eb5b1a (patch) | |
tree | c091b3e6db41fff548f7c00b905d0dbc5a7e70cd /cfg | |
parent | 404b8c79d070a027503cb8792888817eb800b396 (diff) |
Switch config file to json
This patch makes configuration parsing easier as well as making the full
configuration available in many subclasses.
Diffstat (limited to 'cfg')
-rw-r--r-- | cfg/ogclient.cfg | 15 | ||||
-rw-r--r-- | cfg/ogclient.json | 19 |
2 files changed, 19 insertions, 15 deletions
diff --git a/cfg/ogclient.cfg b/cfg/ogclient.cfg deleted file mode 100644 index 634382d..0000000 --- a/cfg/ogclient.cfg +++ /dev/null @@ -1,15 +0,0 @@ -[opengnsys] -ip=127.0.0.1 -url=https://127.0.0.1/opengnsys/varios/menubrowser.php -url_log=http://localhost/cgi-bin/httpd-log.sh -port=8889 -# Log Level, if ommited, will be set to INFO -log=DEBUG -# Supported modes are 'virtual' and 'linux' -mode=linux - -# User and password for all samba repositories. This user requires read and -# write permission. -[samba] -user=opengnsys -pass=og diff --git a/cfg/ogclient.json b/cfg/ogclient.json new file mode 100644 index 0000000..047ec6d --- /dev/null +++ b/cfg/ogclient.json @@ -0,0 +1,19 @@ +{ + "opengnsys": { + "ip": "127.0.0.1", + "port": 8889, + "log": "DEBUG", + "mode": "linux", + "url": "https://127.0.0.1/opengnsys/varios/menubrowser.php", + "url_log": "http://localhost/cgi-bin/httpd-log.sh" + }, + "samba": { + "activate": true + "user": "opengnsys", + "pass": "og" + }, + "vnc": { + "activate": true, + "pass": "ogvnc" + } +} |