Commit Graph

8 Commits (178f253092c2dd8ce5ab81089e27952b19757203)

Author SHA1 Message Date
Javier Sánchez Parra 178f253092 Always try to load servers list from config file
Otherwise, servers list is not loaded if the configuration file also
have an ogServer declared in the deprecated way.
2022-09-29 13:01:28 +02:00
Daniel García Moreno 0c66443db8 Add multiple servers to the dashboard view 2022-09-27 09:48:36 +02:00
Javier Sánchez Parra d74ad9336e Ignore unreachable ogServers
Otherwise, ogCP crashes trying to connect to unreachable ogServers.
2022-09-27 09:48:36 +02:00
Javier Sánchez Parra 2cbe6b774c Retreive scopes from several ogServers
Update the configuration file format to support several ogServers and
retrieve scopes from those ogServers.

The old config file format is still supported.
2022-09-27 09:48:35 +02:00
OpenGnSys Support Team d84933f88e ogcp is AGPLv3+
Update license header in files.
2021-05-20 18:45:38 +02:00
Jose M. Guisado b708047d28 config: use from_json to read ogserver config
This patch introduces the usage of Flask.Config class so the config can
be read at startup (__init__) only once. Config keys must be uppercase
so that from_json method does take it into account.

 dormousehole.readthedocs.io/en/stable/api.html#flask.Config.from_json

Prior to this patch each request required opening and closing the
ogserver.json file via load_config in views.py.

In the future the decorated load_config function inside views.py
may be removed to avoid creating multiple instances of the OGServer
class.
2020-11-06 09:27:03 +00:00
Roberto Hueso Gómez 46b88fff0b Add requests functionality to the OGServer class
These functions will be used to make HTTP GET and POST requests to the
OGServer.
2020-09-02 14:42:10 +02:00
Roberto Hueso Gómez df2e425b34 Add basic backend structure
This adds views functions and ogServer config loading.
2020-08-31 11:58:27 +02:00