SMIB Configuration Settings
This document provides a comprehensive overview of all configurable settings in S.M.I.B.
Environment Variable
Description
Example
Default
SMIB_SLACK_BOT_TOKEN
Slack bot token used for authentication with the Slack API
xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx
None (Required)
SMIB_SLACK_APP_TOKEN
Slack app token used for socket mode connections
xapp-1-A1234567890-1234567890123-abcdefghijklmnopqrstuvwxyz1234567890123456789012
None (Required)
SMIB_SLACK_SIGNING_SECRET
Secret used to verify requests from Slack
abcdef1234567890abcdef1234567890
Random generated string
Environment Variable
Description
Example
Default
SMIB_ENVIRONMENT
The application environment (PRODUCTION, TESTING, DEVELOPMENT)
DEVELOPMENT
PRODUCTION
Environment Variable
Description
Example
Default
SMIB_DB_MONGO_DB_HOST
MongoDB server hostname or IP address
mongodb.example.com
localhost
SMIB_DB_MONGO_DB_PORT
MongoDB server port number
27018
27017
SMIB_DB_MONGO_DB_NAME
MongoDB database name, defaults to the project name
smib-production
Project name
Environment Variable
Description
Example
Default
SMIB_WEBSERVER_HOST
Host address to bind the webserver to (0.0.0.0 for all interfaces)
127.0.0.1
0.0.0.0
SMIB_WEBSERVER_PORT
Port number for the webserver to listen on
8080
80
SMIB_WEBSERVER_PATH_PREFIX
URL path prefix for the webserver endpoints
/smib/
/
SMIB_WEBSERVER_FORWARDED_ALLOW_IPS
List of IPs allowed for X-Forwarded-For headers (* for all)
[10.0.0.1, 192.168.1.1]
[*]
SMIB_WEBSERVER_LOG_REQUEST_DETAILS
Whether to log detailed information about HTTP requests
true
false
Environment Variable
Description
Example
Default
SMIB_LOGGING_LOG_LEVEL
Logging level for the application (DEBUG, INFO, WARNING, ERROR)
DEBUG
INFO
Environment Variable
Description
Example
Default
SMIB_COMPOSE_MONGO_DB_TAG
MongoDB container version tag
4.4.18
latest
SMIB_COMPOSE_ME_MONGO_DB_URL
MongoDB connection URL for Mongo Express
mongodb://username:password@smib-db:27017/
mongodb://smib-db:27017/
Environment Variable
Description
Example
Default
SMIB_PROXY_EXTERNAL_PORT
External port for the Traefik proxy
8080
80
SMIB_PROXY_TRUSTED_PROXIES
Trusted IPs for forwarded headers in Traefik
10.0.0.1,192.168.1.1
None
Environment Variable
Description
Example
Default
SMIB_PLUGIN_SPACE_STATE_SPACE_OPEN_ANNOUNCE_CHANNEL_ID
Slack channel ID where space open/close announcements are posted
C1234567890
space-open-announce
Environment Variable
Description
Example
Default
SMIB_PLUGIN_STATIC_FILES_STATIC_FILES_DIRECTORY
Directory path where static files are stored and served from
public/assets
static
Environment Variable
Description
Example
Default
SMIB_PLUGIN_SMIBHID_SENSOR_MONITOR_INTERVAL
Interval between sensor log monitor checks. Accepts seconds (int), HH:MM:SS, or ISO8601 durations like PT10M. Set to None to disable monitoring.
PT1M or 0:01:00 or 60
0:01:00
SMIB_PLUGIN_SMIBHID_SENSOR_MONITOR_ALERT_THRESHOLD
Time since the last received sensor log after which an alert should be sent. Accepts seconds (int), HH:MM:SS, or ISO8601 durations.
PT1H or 1:00:00 or 3600
1:00:00
SMIB_PLUGIN_SMIBHID_SENSOR_MONITOR_ALERT_RESEND_INTERVAL
Interval to resend alerts while the issue persists. Accepts seconds (int), HH:MM:SS, or ISO8601 durations. Set to None to only alert once per issue.
PT10M or 0:10:00 or 600
None
SMIB_PLUGIN_SMIBHID_SENSOR_MONITOR_ALERT_CHANNEL_ID
Slack channel ID where sensor log monitor alerts are posted
C1234567890
code