Skip to main content

Container Configuration

beaver-iot-web

Environment Variables

NameDefaultDescription
BEAVER_IOT_API_HOST172.17.0.1Destination address for Nginx HTTP proxy, i.e., the backend service's IP or FQDN
BEAVER_IOT_API_PORT9200HTTP port number for the API service
BEAVER_IOT_WEBSOCKET_PORT9201WebSocket port number for the API 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-api

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 API service log files
/root/beaver-iot/integrations/Directory for Beaver IoT integrations
/root/beaver-iot/h2/Directory for H2 database storage

beaver-iot

Environment Variables

NameDefaultDescription
BEAVER_IOT_API_HOSTlocalhostDestination address for Nginx HTTP proxy, i.e., the backend service's IP or FQDN
BEAVER_IOT_API_PORT9200HTTP port number for the API service
BEAVER_IOT_WEBSOCKET_PORT9201WebSocket port number for the API 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
9200API service HTTP port for API requests (bypassing Nginx)
9201API 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 API service log files
/root/beaver-iot/integrations/Directory for Beaver IoT integrations
/root/beaver-iot/h2/Directory for H2 database storage