Monviech / os-caddy-plugin

Caddy Plugin with GUI for OPNsense
Other
38 stars 0 forks source link

Implement Subdomains so they can be used in handles #31

Closed Monviech closed 9 months ago

Monviech commented 9 months ago

Subdomain:

# Reverse proxy entry "example.com HTTP Reverse Proxy":
*.example.com:443 {
    tls {
        dns cloudflare 1484053787dJQB8vP1q0yc5ZEBnH6JGS4d3mBmvIeMrnnxFi3WtJdF
    }

    # subdomain for autodiscover.example.com
    @autodiscover.example.com host autodiscover.example.com:443
    handle @autodiscover.example.com {
        reverse_proxy 192.168.1.1:443
    }

    # Local handle for any other domains in that subdomain
    handle {
        reverse_proxy 172.16.1.1:4444
    }
}
Monviech commented 9 months ago

https://github.com/Monviech/os-caddy-plugin/pull/32