Skip to main content

Sites

Sites let you configure a reverse-proxy entry point for a web service. Each site maps one or more domains to an upstream backend, manages SSL certificates, attaches traffic Rules, and optionally links to a Casdoor application for authentication.

Site properties

FieldDescription
DomainPrimary domain for this site (e.g. example.com).
Other domainsAdditional domains that route to the same backend.
Need redirectRedirect all other domains to the primary domain.
Disable verboseSuppress detailed request/response logging for this site.
RulesList of Rules applied to incoming requests. Rules are evaluated in order; the first match wins.
HostUpstream backend hostname or IP.
PortUpstream backend port.
HostsMultiple upstream hosts for load balancing (one per line).
Public IPPublic IP address reported for this site.
ModeSSL mode: None, HTTP, HTTPS and HTTP, or HTTPS Only.
SSL certCertificate used for HTTPS. Select an SSL certificate from the Certs page.
Casdoor appCasdoor application to use for authentication on this site.
StatusCurrent proxy status (reported by the node running the proxy).

Health checks and alerts

Enable Enable alert to monitor site availability. When enabled:

FieldDescription
Alert intervalHow often (in seconds) to check site health.
Alert try timesNumber of consecutive failures before triggering an alert.
Alert providersNotification providers to alert (e.g. email, SMS).

Setting up a site

  1. Navigate to Sites in the Casdoor sidebar.
  2. Click Add and fill in the domain, host, and port.
  3. Choose an SSL mode and select a certificate if using HTTPS.
  4. Optionally attach one or more Rules to control traffic.
  5. If the site requires authentication, set Casdoor app to the relevant application.
  6. Save. The proxy starts serving traffic on the configured domain.

Relationship with Application reverse proxy

Applications also have a Reverse Proxy tab for basic proxy configuration scoped to that application. Sites provide a standalone, more feature-rich proxy configuration that can be used independently of any application, with additional capabilities like health checks, multi-domain routing, and traffic rules.