Server Proxy - solettaproject/soletta-dev-app GitHub Wiki
The Soletta Development Application respects the Environment vars http_proxy
and https_proxy
. So to use it behind a proxy it is necessary to export these vars.
If it is being use together with systemd service, It is necessary to configure the server service. Open soletta-dev-app-server.service and under the section [Service]
append the following:
Environment="http_proxy="http://MY_PROXY_END_HERE:MY_PORT" Environment="https_proxy="http://MY_PROXY_END_HERE:MY_PORT"
For example the final service target has to look something like this:
[Unit]
Description=Run Soletta Development Application server
[Service]
ExecStart=/usr/bin/node /soletta-dev-app/server/app.js 1> /dev/null 2>&1
Environment="NODE_ENV=production"
Environment="http_proxy="http://192.168.1.132:1910"
Environment="https_proxy="http://192.168.1.133:1910"
[Install]
WantedBy=multi-user.target