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
commitf775f4c76691fc61b2993d81d9f1b4690e76b141 (patch)
tree9fe248e5379c66cbaa740243bebc04bb7df7cd29 /template/nginx/server.ts
parent1562a317e147954c5618ecdccbfd10c944bf81ce (diff)
downloadcrupest-f775f4c76691fc61b2993d81d9f1b4690e76b141.tar.gz
crupest-f775f4c76691fc61b2993d81d9f1b4690e76b141.tar.bz2
crupest-f775f4c76691fc61b2993d81d9f1b4690e76b141.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;
+}