Server/Configuration: Difference between revisions

From Bondix Wiki
(Undo revision 54 by Red (talk))
Tag: Undo
No edit summary
 
Line 1: Line 1:
== Server Configuration ==
== Server Configuration ==
By default, the server configuration in <code>/etc/saneserver.json</code> allows to set up many things via the web interface - environments and tunnels that are created dynamically (via the web interface) are stored in /etc/bondix/.
By default, the server configuration in <code>/etc/bondixserver.json</code> allows to set up many things via the web interface - environments and tunnels that are created dynamically (via the web interface) are stored in /etc/bondix/.


However, you can customize S.A.NE server to adjust your requirements, such as:
However, you can customize S.A.NE server to adjust your requirements, such as:
Line 8: Line 8:
* Set up tunnels statically  
* Set up tunnels statically  


=== Configuration Layout for /etc/saneserver.json ===
=== Configuration Layout for /etc/bondixserver.json ===
Configuration is stored in JSON, as an array of configuration commands. Lets inspect the default configuration:
Configuration is stored in JSON, as an array of configuration commands. Lets inspect the default configuration:



Latest revision as of 16:36, 14 July 2025

Server Configuration

By default, the server configuration in /etc/bondixserver.json allows to set up many things via the web interface - environments and tunnels that are created dynamically (via the web interface) are stored in /etc/bondix/.

However, you can customize S.A.NE server to adjust your requirements, such as:

  • Have the web interface only accessible on a dedicated IP/port
  • Disable the webinterface completely
  • Set up tunnels statically

Configuration Layout for /etc/bondixserver.json

Configuration is stored in JSON, as an array of configuration commands. Lets inspect the default configuration:

 [    
   {"target": "tunnel", "action": "set-settings-location", "directory": "/etc/bondix/"},
   {"target": "server", "action": "add-https", "host": "0.0.0.0", "port": "443", "allowMonitor": true},
   {"target": "server", "action": "add-http", "host": "0.0.0.0", "port": "80", "allowMonitor": true},
   {"target": "server", "action": "add-user", "user": "admin", "password": "password"},
   {"target": "server", "action": "set-web-login", "password": "password"}
 ]