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 | 77d0d76287d51df6178cf0b70656ced0b62df6ef (patch) | |
tree | a27aba4a7bbac9181ecb2e71994f8d3411b8975e /template/nginx/server.ts | |
parent | 7e82ff4b8b6fb665b43b05135ba0ea6a2f6adcb5 (diff) | |
download | crupest-77d0d76287d51df6178cf0b70656ced0b62df6ef.tar.gz crupest-77d0d76287d51df6178cf0b70656ced0b62df6ef.tar.bz2 crupest-77d0d76287d51df6178cf0b70656ced0b62df6ef.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[]; |