18 lines
510 B
PHP
18 lines
510 B
PHP
<?php
|
|
|
|
namespace App\Services\Traefik;
|
|
|
|
interface TraefikWriter
|
|
{
|
|
/**
|
|
* Write a file-provider router on the Traefik host ($trafficHost) that routes
|
|
* the subdomain to the guest ($backend).
|
|
*/
|
|
public function write(string $trafficHost, string $subdomain, string $backend): void;
|
|
|
|
public function remove(string $trafficHost, string $subdomain): void;
|
|
|
|
/** True once the ACME (HTTP-01) certificate for the fqdn is served. */
|
|
public function certReachable(string $fqdn): bool;
|
|
}
|