Command
serve — run a SuperDB service endpoint
Synopsis
super db serve [options]
Options
-auth.audienceAuth0 audience for API clients (will be publicly accessible)-auth.clientidAuth0 client ID for API clients (will be publicly accessible)-auth.domainAuth0 domain (as a URL) for API clients (will be publicly accessible)-auth.enabledenable authentication checks-auth.jwkspathpath to JSON Web Key Set file-cors.originCORS allowed origin (may be repeated)-defaultfmtdefault response format (default “sup”)-l [addr]:portto listen on (default “:9867”)-log.devmodedevelopment mode (if enabled dpanic level logs will cause a panic)-log.filemodlogger file write mode (values: append, truncate, rotate)-log.levellogging level-log.pathpath to send logs (values: stderr, stdout, path in file system)-managewhen positive, run lake maintenance tasks at this interval-rootcontentfilefile to serve for GET /
Additional options of the db sub-command
Description
TODO: get rid of personality metaphor?
The serve command implements the
server personality to service requests
from instances of the client personality.
It listens for API requests on the interface and port
specified by the -l option, executes the requests, and returns results.
The -log.level option controls log verbosity. Available levels, ordered
from most to least verbose, are debug, info (the default), warn,
error, dpanic, panic, and fatal. If the volume of logging output at
the default info level seems too excessive for production use, warn level
is recommended.
The -manage option enables the running of the same maintenance tasks
normally performed via the separate manage command.