aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/server.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-27 11:18:47 +0800
committercrupest <crupest@outlook.com>2022-11-27 11:18:47 +0800
commit3be4d089dca831ec5e79eb457100a967b8a20398 (patch)
treea27aba4a7bbac9181ecb2e71994f8d3411b8975e /template/nginx/server.ts
parentb0a7c606af768b190d5541e407803bd4a30b1dac (diff)
downloadcrupest-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.ts12
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[];