From b527569b990851f5c03f58670c5c965a6b0cc234 Mon Sep 17 00:00:00 2001 From: Steffen Vogel <stvogel@eonerc.rwth-aachen.de> Date: Mon, 11 Jun 2018 14:48:18 +0000 Subject: [PATCH] update configuration files --- etc/nginx/villas.conf | 8 +++- etc/node/demo.conf | 102 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 2 deletions(-) create mode 100644 etc/node/demo.conf diff --git a/etc/nginx/villas.conf b/etc/nginx/villas.conf index 67034de..9b010fb 100644 --- a/etc/nginx/villas.conf +++ b/etc/nginx/villas.conf @@ -61,13 +61,17 @@ server { proxy_pass http://node/api; } - location /ws { + location /ws/ { proxy_pass http://node/; } # frontend location location / { - proxy_pass http://frontend:5000/; + proxy_pass http://frontend:3000/; + } + + location /mongo-express/ { + proxy_pass http://mongo-express:8081/; } } diff --git a/etc/node/demo.conf b/etc/node/demo.conf new file mode 100644 index 0000000..03f6637 --- /dev/null +++ b/etc/node/demo.conf @@ -0,0 +1,102 @@ +/** Example configuration file for VILLASnode. + * + * The syntax of this file is similar to JSON. + * A detailed description of the format can be found here: + * http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files + * + * @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de> + * @copyright 2017, Institute for Automation of Complex Power Systems, EONERC + * @license GNU General Public License (version 3) + * + * VILLASnode + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + *********************************************************************************/ + +stats = 10; + +hugepages = 1000; + +nodes = { + sig = { + type = "signal", + + signal = "mixed", + values = 5, + rate = 20 + }, + ws_sig = { + type = "websocket", + } + reserver = { + type = "mqtt" + format = "protobuf", + + username = "guest", + password = "guest", + host = "137.226.248.103", + port = 1883, + + publish = "reserve-dpsim-in", + subscribe = "reserve-dpsim-out", + }, + lo = { + type = "mqtt" + format = "villas.human", + + username = "guest", + password = "guest", + host = "137.226.248.103", + port = 1883, + + publish = "lo", + subscribe = "lo", + }, + ws_reserver = { + type = "websocket" + + hooks = ( + { type = "stats" } + ) + }, + ws_lo = { + type = "websocket" + + hooks = ( + { type = "stats" } + ) + } +}; + +############ List of paths ############ + +paths = ( + { + in = "sig", + out = "ws_sig" + }, + { + in = "ws_lo", + out = "lo" + }, + { + in = "lo", + out = "ws_lo" + }, + { + in = "reserver", + out = "ws_reserver", + reverse = true + } +); -- GitLab