Toolsgenerator

Docker for Self-Hosting

Generate secure, optimized Traefik v2 configuration snippets for self-hosted services with HTTPS and reverse proxy settings.

Try the tool

client runner

Generated Traefik configuration

Run the tool to see output.

Examples

Basic HTTP service

{
  "domain": "app.example.com",
  "service_name": "my-app",
  "target_port": 3000,
  "ssl_cert_type": "None",
  "redirect_http": false
}

Expected output

{
  "http": {
    "routers": {
      "my-app": {
        "rule": "Host(`app.example.com`)",
        "service": "my-app",
        "entryPoints": ["http"]
      }
    },
    "services": {
      "my-app": {
        "loadBalancer": {
          "servers": [{"url": "http://localhost:3000"}]
        }
      }
    }
  }
}

HTTPS with Let's Encrypt

{
  "domain": "dashboard.example.com",
  "service_name": "admin-panel",
  "target_port": 8080,
  "ssl_cert_type": "Let's Encrypt",
  "redirect_http": true
}

Expected output

{
  "http": {
    "routers": {
      "admin-panel": {
        "rule": "Host(`dashboard.example.com`)",
        "service": "admin-panel",
        "entryPoints": ["http"],
        "middlewares": [{"name": "https-redirect"}]
      }
    },
    "middlewares": {
      "https-redirect": {
        "redirectScheme": {"scheme": "https", "permanent": true}
      }
    },
    "services": {
      "admin-panel": {
        "loadBalancer": {
          "servers": [{"url": "http://localhost:8080"}]
        }
      }
    },
    "secure": true
  }
}

How it works

The tool constructs a minimal Traefik v2 configuration by combining user-provided domain, service identifiers, and security preferences. It generates valid TOML/JSON format configurations with proper routing rules, service definitions, and SSL settings based on input parameters.

Related tools