aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/server.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-19 13:00:13 +0800
committercrupest <crupest@outlook.com>2022-11-19 13:00:13 +0800
commit5fe53ec36e9298fd40a36877a9a5ceb791814f50 (patch)
tree9fe248e5379c66cbaa740243bebc04bb7df7cd29 /template/nginx/server.ts
parent02cb10f9dcf5cd228f563f28e607ad7403a5aa9c (diff)
downloadcrupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.gz
crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.bz2
crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.zip
No caddy, only nginx and certbot.
Diffstat (limited to 'template/nginx/server.ts')
-rw-r--r--template/nginx/server.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/template/nginx/server.ts b/template/nginx/server.ts
new file mode 100644
index 0000000..6a5d24d
--- /dev/null
+++ b/template/nginx/server.ts
@@ -0,0 +1,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;
+}