aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/server.ts
blob: 6a5d24dba90ac38ed3fb4a6fc96d53202a249177 (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
// 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;
}