summaryrefslogtreecommitdiffstats
path: root/src/cfg.c
Commit message (Collapse)AuthorAgeFilesLines
* ogServer is AGPLv3+OpenGnSys Support Team2021-05-041-2/+3
| | | | Update license header in files.
* #988 remove legacy configurationOpenGnSys Support Team2020-10-071-15/+1
| | | | | Use og_server_cfg everywhere. Convert port to string to make it easy for the dbi API since it expects a string. Remove legacy example configuration file.
* #1004 set default path to repositoryOpenGnSys Support Team2020-10-061-2/+1
| | | | This is /opt/opengnsys/images if not specified.
* #1004 Add GET /imagesJavier Sánchez Parra2020-09-291-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds GET /images to the ogServer REST API. This call returns information of all the images in ogServer. Example response: { "images": [ { "filename": "ubuntu.img", "datasize": 2150400000, "size": 613476223, "modified": "Wed Sep 23 10:37:36 2020", "permissions": "744" }, { "filename": "test.img", "datasize": 2150400000, "size": 613236475, "modified": "Tue Sep 29 08:57:47 2020", "permissions": "744" } ], "disk": { "total": 52573995008, "free": 39624544256 } }
* #988 use-after-free in json configuration parserOpenGnSys Support Team2020-09-221-10/+19
| | | | | The cfg structure stores pointers to the string in this json tree. Do not release the json tree, keep it as field in the cfg structure.
* #988 fix compilation warning in json configuration file to legacyOpenGnSys Support Team2020-09-151-8/+8
| | | | | src/cfg.c: In function ‘from_json_to_legacy’: src/cfg.c:161:2: warning: format not a string literal and no format arguments [-Wformat-security]
* #988 Check DB port size is in [0, UINT16_MAX]Roberto Hueso Gómez2020-07-151-1/+2
| | | | | Max port number is UINT16_MAX, so this checks whether this config parameter is in the correct range.
* #988 Add DB port option to ogserver.json config fileRoberto Hueso Gómez2020-07-101-0/+4
| | | | | This patch provides functionality to select a database port. It also adds a default IP for the database.
* #971 rename sources folder to srcOpenGnSys Support Team2020-06-261-0/+165
Use the same folder as in ogClient.