Deployment
In this section we'll explain how to deploy a vantage6 server.
vantage6 uses Flask as backbone, together with flask-socketio for websocket support. The server runs as a standalone process (listening on its own ip address/port).
Because there is no message broker is used for the websocket channel, it is currently not possible to horizontally scale the vantage6-server
There are many deployment options, so these examples are not complete and exhaustive.

NGINX

Below a basic setup. Note that SSL is not configured in this example.
1
server {
2
3
# public port
4
listen 80;
5
server_name _;
6
7
# vantage6-server
8
location / {
9
include proxy_params;
10
11
# internal ip and port
12
proxy_pass http://127.0.0.1:5000;
13
}
14
15
# allow the websocket traffic
16
location /socket.io {
17
include proxy_params;
18
proxy_http_version 1.1;
19
proxy_buffering off;
20
proxy_set_header Upgrade $http_upgrade;
21
proxy_set_header Connection "Upgrade";
22
proxy_pass http://127.0.0.1:5000/socket.io;
23
}
24
}
Copied!

Azure app service

TODO
Last modified 1mo ago
Export as PDF
Copy link