Aller au contenu

Running the standalone server

Ce contenu n’est pas encore disponible dans votre langue.

scimply ships as a standalone binary alongside the Go library. The binary provides a serve command that boots a production HTTP server from a YAML config file — no Go code required.

Homebrew:

Terminal window
brew install cerberauth/tap/scimply

Docker:

Terminal window
docker pull ghcr.io/cerberauth/scimply

Go install:

Terminal window
go install github.com/cerberauth/scimply/cmd/scimply@latest

Or download a pre-built binary from the GitHub releases page.

Create scimply.yaml:

server:
addr: ":8080"
base_path: "/scim/v2"
auth:
type: bearer_token
tokens:
- "my-secret-token"
store:
type: memory

This starts an in-memory server with bearer token auth. See the configuration reference for all options.

Terminal window
scimply serve

By default, scimply looks for scimply.yaml in the current directory. Use -c to specify a different path:

Terminal window
scimply serve -c /etc/scimply/config.yaml

The server logs to stderr and exits cleanly on SIGINT or SIGTERM.

Terminal window
docker run --rm \
-p 8080:8080 \
-v $(pwd)/scimply.yaml:/etc/scimply/config.yaml \
ghcr.io/cerberauth/scimply \
serve -c /etc/scimply/config.yaml
server:
addr: ":8443"
base_path: "/scim/v2"
read_timeout: "10s"
write_timeout: "30s"
shutdown_timeout: "30s"
tls:
cert_file: "/etc/certs/server.crt"
key_file: "/etc/certs/server.key"
log:
level: "info"
format: "json"
audit:
type: "json"
output: "/var/log/scimply/audit.ndjson"
auth:
type: "bearer_token"
tokens:
- "prod-token-abc"
store:
type: "postgres"
postgres:
dsn: "postgres://scim:secret@db:5432/scimdb"
table_prefix: "scim_"
auto_migrate: true