aboutsummaryrefslogtreecommitdiff
path: root/template2/server.json.template
diff options
context:
space:
mode:
Diffstat (limited to 'template2/server.json.template')
-rw-r--r--template2/server.json.template58
1 files changed, 58 insertions, 0 deletions
diff --git a/template2/server.json.template b/template2/server.json.template
new file mode 100644
index 0000000..22f1251
--- /dev/null
+++ b/template2/server.json.template
@@ -0,0 +1,58 @@
+{
+ "$schema": "./server.schema.json",
+ "domains": [
+ {
+ "name": "@",
+ "services": [
+ {
+ "type": "static-file",
+ "path": "/",
+ "root": "/srv/www"
+ },
+ {
+ "type": "redirect",
+ "path": "/github",
+ "to": "https://github.com/crupest"
+ },
+ {
+ "type": "reverse-proxy",
+ "path": "/_${V2RAY_PATH}",
+ "upstream": "crupest-v2ray:10000"
+ }
+ ]
+ },
+ {
+ "name": "code",
+ "services": [
+ {
+ "type": "reverse-proxy",
+ "path": "/",
+ "upstream": "code-server:8080"
+ }
+ ]
+ },
+ {
+ "name": "timeline",
+ "services": [
+ {
+ "type": "reverse-proxy",
+ "path": "/",
+ "upstream": "timeline:5000"
+ }
+ ]
+ },
+ {
+ "name": "blog",
+ "services": [
+ {
+ "type": "static-file",
+ "path": "/",
+ "root": "/srv/blog"
+ }
+ ]
+ },
+ {
+ "name": "mail"
+ }
+ ]
+} \ No newline at end of file