diff options
Diffstat (limited to 'template/nginx/server.ts')
-rw-r--r-- | template/nginx/server.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/template/nginx/server.ts b/template/nginx/server.ts new file mode 100644 index 0000000..6a5d24d --- /dev/null +++ b/template/nginx/server.ts @@ -0,0 +1,29 @@ +// Used to generate json schema. + +export interface ReverseProxySite { + type: "reverse-proxy"; + subdomain: string; + upstream: { + name: string; + server: string; + }; +} + +export interface StaticFileSite { + type: "static-file"; + subdomain: string; + root: string; +} + +export interface CertOnlySite { + type: "cert-only"; + subdomain: string; +} + +export type Site = ReverseProxySite | StaticFileSite | CertOnlySite; + +export type Sites = Site[]; + +export interface Server { + sites: Sites; +} |