aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/server.ts
blob: 368e5ffc863caec6fd242c6aa0f605be89cdd48b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Used to generate json schema.

export interface ReverseProxySite {
  type: "reverse-proxy";
  subdomain: string;
  upstream: string;
}

export interface StaticFileSite {
  type: "static-file";
  subdomain: string;
  root: string;
}

export interface RedirectSite {
  type: "redirect";
  subdomain: string;
  url: string;
}

export interface CertOnlySite {
  type: "cert-only";
  subdomain: string;
}

export type Site =
  | ReverseProxySite
  | StaticFileSite
  | RedirectSite
  | CertOnlySite;

export type Sites = Site[];

export interface Server {
  sites: Sites;
}