Settings reference¶
Generated from the settings model at build time. Every setting is an environment variable prefixed MES_ (or a line in .env); the table shows the default a laptop gets.
| Setting | Environment variable | Default |
|---|---|---|
database_url |
MES_DATABASE_URL |
sqlite:///fsmes.db |
log_level |
MES_LOG_LEVEL |
INFO |
log_dir |
MES_LOG_DIR |
logs |
api_host |
MES_API_HOST |
127.0.0.1 |
api_port |
MES_API_PORT |
8000 |
plant_name |
MES_PLANT_NAME |
|
secret_key |
MES_SECRET_KEY |
|
token_ttl_seconds |
MES_TOKEN_TTL_SECONDS |
43200 |
admin_password |
MES_ADMIN_PASSWORD |
admin |
operator_password |
MES_OPERATOR_PASSWORD |
operator |
opc_endpoint |
MES_OPC_ENDPOINT |
opc.tcp://127.0.0.1:4840/mes-twin/sim |
opc_namespace |
MES_OPC_NAMESPACE |
urn:mes-twin:sim |
tag_map_file |
MES_TAG_MAP_FILE |
config/tag_map.json |
line_layout_file |
MES_LINE_LAYOUT_FILE |
config/line_layout.json |
opc_security |
MES_OPC_SECURITY |
|
opc_user |
MES_OPC_USER |
|
opc_password |
MES_OPC_PASSWORD |
|
opc_cert_dir |
MES_OPC_CERT_DIR |
certs |
opc_application_uri |
MES_OPC_APPLICATION_URI |
urn:mes-twin:agent |
replay_dir |
MES_REPLAY_DIR |
labs/kepsim/out |
erp_mode |
MES_ERP_MODE |
rest |
erp_base_url |
MES_ERP_BASE_URL |
http://127.0.0.1:8001 |
erp_inbox |
MES_ERP_INBOX |
erp_exchange/inbox |
erp_outbox |
MES_ERP_OUTBOX |
erp_exchange/outbox |
erp_archive |
MES_ERP_ARCHIVE |
erp_exchange/archive |
erp_poll_seconds |
MES_ERP_POLL_SECONDS |
5.0 |
erpnext_base_url |
MES_ERPNEXT_BASE_URL |
http://localhost:8090 |
erpnext_site |
MES_ERPNEXT_SITE |
mes.localhost |
erpnext_user |
MES_ERPNEXT_USER |
Administrator |
erpnext_password |
MES_ERPNEXT_PASSWORD |
admin |
erpnext_api_key |
MES_ERPNEXT_API_KEY |
|
erpnext_api_secret |
MES_ERPNEXT_API_SECRET |
|
erpnext_company |
MES_ERPNEXT_COMPANY |
ACME Beverages |
erpnext_post_stock_entry |
MES_ERPNEXT_POST_STOCK_ENTRY |
true |
sim_speed |
MES_SIM_SPEED |
1.0 |
opc_publish_ms |
MES_OPC_PUBLISH_MS |
500 |
tag_retention_days |
MES_TAG_RETENTION_DAYS |
14.0 |
opc_endpoints |
MES_OPC_ENDPOINTS |
Plant registries (fsmes plant) carry per-plant values that override these; see plants from a registry.