Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct {
// Demo indicates if the server is in demo mode
Demo bool
// Addr is the binding address for server
Addr string
// Port is the binding port for server
Port int
// UNIXSock is the IPC binding path. Overrides Addr and Port
UNIXSock string
// Data is the data directory
Data string
// DSN points to where memos stores its own data
DSN string
// Driver is the database driver: sqlite, mysql, postgres, or d1.
Driver string
// Version is the current version of server
Version string
// Commit is the current build commit of server
Commit string
// InstanceURL is the canonical external URL of the Memos instance.
InstanceURL string
// RateLimit enables the request rate limiter. Off restores unbounded behavior.
RateLimit bool
// TrustedProxies lists the proxies whose forwarding headers identify the
// client: CIDRs, addresses, or the keywords "private" and "none".
TrustedProxies []string
}
Profile is the configuration to start main server.
Click to show internal directories.
Click to hide internal directories.