One-Click Deploy
Docker
The recommended way to run ogis:Docker Compose
For development or simple deployments:Building from Source
Requirements: Rust 1.70+Configuration
Configure ogis via environment variables (prefixed withOGIS_) or CLI arguments.
Server Options
| Environment Variable | CLI Argument | Default | Description |
|---|---|---|---|
OGIS_PORT | --port | 3000 | Server port |
OGIS_HOST | --host | 0.0.0.0 | Server bind address |
Image Generation
| Environment Variable | CLI Argument | Default | Description |
|---|---|---|---|
OGIS_DEFAULT_TEMPLATE | --default-template | twilight | Default template when not specified |
OGIS_DEFAULT_TITLE | --default-title | ogis | Default title text |
OGIS_DEFAULT_DESCRIPTION | --default-description | - | Default description text |
OGIS_MAX_INPUT_LENGTH | --max-input-length | 500 | Maximum text length |
Caching
| Environment Variable | CLI Argument | Default | Description |
|---|---|---|---|
OGIS_CACHE_SIZE | --cache-size | 1000 | Number of images to cache in memory |
Security
| Environment Variable | CLI Argument | Default | Description |
|---|---|---|---|
OGIS_HMAC_SECRET | --hmac-secret | - | Enable HMAC authentication (see Authentication) |
Image Fetching
| Environment Variable | CLI Argument | Default | Description |
|---|---|---|---|
OGIS_IMAGE_TIMEOUT | --image-timeout | 10 | Timeout for fetching external images (seconds) |
OGIS_IMAGE_MAX_SIZE | --image-max-size | 5242880 | Maximum image size (bytes, default 5MB) |
OGIS_IMAGE_HTTPS_ONLY | --image-https-only | true | Only allow HTTPS URLs for images |
ogis --help for the complete list of options.
Health Checks
ogis exposes a health endpoint for container orchestration:200 OK when the service is ready.
Reverse Proxy
- Nginx
- Caddy