Skip to main content

Container Configuration

beaver-iot-web

Environment Variables

NameDefaultDescription
SERVER_HOST172.17.0.1Destination address for Nginx HTTP proxy, i.e., the backend service's IP or FQDN
SERVER_PORT9200HTTP port number for the Java service
WEBSOCKET_PORT9201WebSocket port number for the Java service

Ports

PortDescription
80HTTP service port for web access

Files

PathDescription
/web/Directory for web files
/etc/nginx/nginx.confMain configuration file for Nginx
/etc/nginx/conf.d/Directory for additional Nginx configuration files
/etc/nginx/conf.d/default.confDefault HTTP server configuration file for Nginx

beaver-iot-server

Environment Variables

NameDefaultDescription
JAVA_OPTSJVM configuration parameters
SPRING_OPTSSpring configuration parameters
DB_TYPEh2Database type, options: postgres, h2
SPRING_H2_CONSOLE_ENABLEDfalseEnable H2 console, options: true, false
SPRING_H2_CONSOLE_SETTINGS_WEB_ALLOW_OTHERSfalseAllow access from other hosts, options: true, false
SPRING_DATASOURCE_URLjdbc:h2:file:~/beaver-iot/h2/beaver;
AUTO_SERVER=TRUE
JDBC connection for the database
SPRING_DATASOURCE_USERNAMEsaDatabase username
SPRING_DATASOURCE_PASSWORDDatabase password
SPRING_DATASOURCE_DRIVER_CLASS_NAMEorg.h2.DriverDatabase driver class name, options: org.h2.Driver, org.postgresql.Driver

Ports

PortDescription
9200HTTP service port for API requests
9201WebSocket service port for WebSocket connections

Files

PathDescription
/root/beaver-iot/logs/Directory for Java service log files
/root/beaver-iot/plugins/Directory for Java plugins
/root/beaver-iot/h2/Directory for H2 database storage

beaver-iot

Environment Variables

NameDefaultDescription
SERVER_HOST172.17.0.1Destination address for Nginx HTTP proxy, i.e., the backend service's IP or FQDN
SERVER_PORT9200HTTP port number for the Java service
WEBSOCKET_PORT9201WebSocket port number for the Java service
JAVA_OPTSJVM configuration parameters
SPRING_OPTSSpring configuration parameters
DB_TYPEh2Database type, options: postgres, h2
SPRING_H2_CONSOLE_ENABLEDfalseEnable H2 console, options: true, false
SPRING_H2_CONSOLE_SETTINGS_WEB_ALLOW_OTHERSfalseAllow access from other hosts, options: true, false
SPRING_DATASOURCE_URLjdbc:h2:file:~/beaver-iot/h2/beaver;
AUTO_SERVER=TRUE
JDBC connection for the database
SPRING_DATASOURCE_USERNAMEsaDatabase username
SPRING_DATASOURCE_PASSWORDDatabase password
SPRING_DATASOURCE_DRIVER_CLASS_NAMEorg.h2.DriverDatabase driver class name, options: org.h2.Driver, org.postgresql.Driver

Ports

PortDescription
80Nginx HTTP port for web access and API requests
9200Java service HTTP port for API requests (bypassing Nginx)
9201Java service WebSocket port for WebSocket connections (bypassing Nginx)

Files

PathDescription
/web/Directory for web files
/etc/nginx/nginx.confMain configuration file for Nginx
/etc/nginx/conf.d/Directory for additional Nginx configuration files
/etc/nginx/conf.d/default.confDefault HTTP server configuration file for Nginx
/root/beaver-iot/logs/Directory for Java service log files
/root/beaver-iot/plugins/Directory for Java plugins
/root/beaver-iot/h2/Directory for H2 database storage