diff options
| author | Jonathan Weth <git@jonathanweth.de> | 2021-06-28 11:01:45 +0200 |
|---|---|---|
| committer | Jonathan Weth <git@jonathanweth.de> | 2021-06-28 11:01:45 +0200 |
| commit | 9ec08cbc84b01ce82f58892556637d8934ede0a5 (patch) | |
| tree | e0b3642801305d60f45359b5c9364f5a5318ba18 /rwa/support/sessionservice/config.py | |
| parent | 3526def9614ac5275f176a42938d11736233f108 (diff) | |
| download | RWA.Support.SessionService-9ec08cbc84b01ce82f58892556637d8934ede0a5.tar.gz RWA.Support.SessionService-9ec08cbc84b01ce82f58892556637d8934ede0a5.tar.bz2 RWA.Support.SessionService-9ec08cbc84b01ce82f58892556637d8934ede0a5.zip | |
Support multiple hosts
Diffstat (limited to 'rwa/support/sessionservice/config.py')
| -rw-r--r-- | rwa/support/sessionservice/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rwa/support/sessionservice/config.py b/rwa/support/sessionservice/config.py index f0f8369..4f39a4e 100644 --- a/rwa/support/sessionservice/config.py +++ b/rwa/support/sessionservice/config.py @@ -23,8 +23,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. +import usersettings from dynaconf import Dynaconf settings = Dynaconf( envvar_prefix="RWA", settings_files=["/etc/rwa/support/sessionservice/settings.toml"] ) + +user_settings = usersettings.Settings("org.ArcticaProject.RWASupportSessionService") +user_settings.add_setting("web_app_hosts", list, ["http://127.0.0.1:8000"]) +user_settings.load_settings() |
