Memos
Configuration

Configuration

Configure server behavior, storage, authentication, and environment variables.

Memos can be configured through command-line flags, MEMOS_* environment variables, and instance-level settings managed in the UI or API.

Common runtime settings

FlagEnvironmentPurpose
--portMEMOS_PORTHTTP port
--addrMEMOS_ADDRbind address
--unix-sockMEMOS_UNIX_SOCKUnix socket path
--dataMEMOS_DATAdata directory
--driverMEMOS_DRIVERdatabase backend
--dsnMEMOS_DSNdatabase connection string
--instance-urlMEMOS_INSTANCE_URLpublic instance URL
--demoMEMOS_DEMOdemo mode
--allow-private-webhooksMEMOS_ALLOW_PRIVATE_WEBHOOKSallow webhook URLs that resolve to private or reserved IP ranges
--log-levelMEMOS_LOG_LEVELlog verbosity (debug, info, warn, error)

Configuration layers

  • runtime flags and environment variables control server startup
  • instance settings control storage, registration, and some auth behavior
  • reverse proxy settings affect HTTPS, cookie behavior, and public URL correctness

On this page