All templates

Static Site

Serve a static website or SPA with Nginx and a public domain. No database needed.

Added by LeafdTK, 18 Mar 2026 v1.0.0 BSD-2-Clause frontend #static#nginx#spa#frontend#html

Resources

Static Site

LeafdTK1 deployment1 domainv1.0.0

2
  • app

    nginx:alpine

    Running

  • ingress

    www.example.com

    Live

Parameters

YAML

static-site.yaml v1.0.0
apiVersion: leaf/v1
kind: Template
metadata:
  name: static-site
  displayName: Static Site
  description: Serve a static website or SPA with Nginx and a public domain. No database needed.
  icon: https://github.com/nginx.png?size=256
  version: '1.0.0'
  category: frontend
  tags: ['static', 'nginx', 'spa', 'frontend', 'html']
  keywords: ['website', 'html', 'landing page', 'spa', 'nginx', 'frontend']
  homepage: https://nginx.org
  license: BSD-2-Clause

parameters:
  - name: appName
    displayName: App Name
    description: Name for the deployment
    type: string
    default: my-site
    required: true
    validation:
      pattern: '^[a-z][a-z0-9-]{1,58}[a-z0-9]$'
      message: Must be lowercase alphanumeric with hyphens, 3-60 chars

  - name: image
    displayName: Docker Image
    description: Image containing your static files (default nginx:alpine)
    type: string
    default: 'nginx:alpine'

  - name: domain
    displayName: Domain
    description: Public domain for the site
    type: string
    required: true
    placeholder: 'www.example.com'

  - name: enableTls
    displayName: Enable HTTPS
    type: boolean
    default: true

resources:
  - name: app
    type: deployment
    config:
      name: '{{ params.appName }}'
      image: '{{ params.image }}'
      replicas: 1
      ports:
        - name: http
          containerPort: 80
          servicePort: 80
          protocol: TCP

  - name: ingress
    type: ingress
    config:
      host: '{{ params.domain }}'
      tlsEnabled: '{{ params.enableTls }}'
      routes:
        - path: /
          serviceName: '{{ resources.app.serviceName }}'
          servicePort: 80

your own cloud, in one click.

Free and open source. Runs on any Linux box.

Install Orchard