CLI Flags#

Command-line flags for the operator and syncer components.

Operator Flags#

FlagDefaultDescription
--pages-domainpages.kup6s.comBase domain for auto-generated subdomains
--cluster-issuerletsencrypt-prodcert-manager ClusterIssuer name
--nginx-namespacekup6s-pagesNamespace where nginx service runs
--nginx-service-namekup6s-pages-nginxName of the nginx service
--pages-tls-modeindividualTLS mode for auto-generated domains: individual or wildcard
--pages-wildcard-secretpages-wildcard-tlsSecret name for wildcard certificate (only used with --pages-tls-mode=wildcard)
--metrics-bind-address:8080Metrics endpoint
--health-probe-bind-address:8081Health probe endpoint

TLS Modes#

ModeDescription
individualCreates a Certificate per site using HTTP-01 challenge. Works without DNS provider API access.
wildcardReferences a pre-existing wildcard certificate. Requires external DNS-01 setup for wildcard cert issuance.

Note: Wildcard mode requires a pre-existing *.{pagesDomain} certificate. This must be created externally using DNS-01 challenge, as Let’s Encrypt doesn’t support wildcard certs via HTTP-01.

Example#

go run ./cmd/operator \
  --pages-domain=pages.example.com \
  --cluster-issuer=letsencrypt-prod \
  --nginx-namespace=kup6s-pages \
  --nginx-service-name=kup6s-pages-nginx \
  --pages-tls-mode=individual

Syncer Flags#

FlagDefaultDescription
--sites-root/sitesDirectory where sites are stored
--sync-interval5mDefault interval for polling repos
--webhook-addr:8080Webhook HTTP server address
--allowed-hostsRequiredComma-separated allowlist of Git hosts
--webhook-secret""Secret for webhook HMAC validation

Example#

go run ./cmd/syncer \
  --sites-root=/sites \
  --sync-interval=5m \
  --webhook-addr=:8080 \
  --allowed-hosts=github.com,gitlab.com,forgejo.example.com \
  --webhook-secret=your-secret-here

Allowed Hosts#

The --allowed-hosts flag provides SSRF (Server-Side Request Forgery) protection. The syncer will only clone repositories from these hosts.

Common values:

  • github.com
  • gitlab.com
  • bitbucket.org
  • codeberg.org

Wildcards are supported for self-hosted instances:

  • *.gitlab.example.com
  • git.internal.company.com

Example:

--allowed-hosts=github.com,gitlab.com,*.gitlab.internal.example.com

Version 1.0.0-rc.1 | Built 2026-02-05
Copyright 2026 Klein & Partner KG, Völs, Austria and contributors