diff options
author | crupest <crupest@outlook.com> | 2022-11-27 11:18:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-27 11:18:47 +0800 |
commit | 3be4d089dca831ec5e79eb457100a967b8a20398 (patch) | |
tree | a27aba4a7bbac9181ecb2e71994f8d3411b8975e /template/nginx/server.ts | |
parent | b0a7c606af768b190d5541e407803bd4a30b1dac (diff) | |
download | crupest-3be4d089dca831ec5e79eb457100a967b8a20398.tar.gz crupest-3be4d089dca831ec5e79eb457100a967b8a20398.tar.bz2 crupest-3be4d089dca831ec5e79eb457100a967b8a20398.zip |
Nginx add redirect.
Diffstat (limited to 'template/nginx/server.ts')
-rw-r--r-- | template/nginx/server.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/template/nginx/server.ts b/template/nginx/server.ts index 6a5d24d..0fad6f5 100644 --- a/template/nginx/server.ts +++ b/template/nginx/server.ts @@ -15,12 +15,22 @@ export interface StaticFileSite { root: string; } +export interface RedirectSite { + type: "redirect"; + subdomain: string; + url: string; +} + export interface CertOnlySite { type: "cert-only"; subdomain: string; } -export type Site = ReverseProxySite | StaticFileSite | CertOnlySite; +export type Site = + | ReverseProxySite + | StaticFileSite + | RedirectSite + | CertOnlySite; export type Sites = Site[]; |