scnetworkgateway.exe
process, which is separated from the database, represents the network gateway. It handles all external communications with the code-host, as well as communication between different code-hosts on one machine.GET /gw/stats
on system port (by default 8181).scnetworkgateway.xml
, which is located in the server repository (e.g User/Documents/Starcounter/Personal). Here are some notable configuration options:413 Request Entity Too Large
and closure of TCP connection.ReverseProxies
section of gateway configuration. Here is an example of reverse proxy that redirects all incoming HTTP requests on port 80, with Host header equals "www.example1.sc", to service on localhost and port 8080:Host
header www.example1.sc
comes on port 80 its automatically transferred to port 8080 on localhost.GET /gw/stats
on system port.scnetworkgateway.xml
one should call GET /gw/updateconf
on system port. If errors occur applying new changes - the previous configuration is kept.