diff options
author | crupest <crupest@outlook.com> | 2023-05-31 22:56:15 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2024-12-18 18:31:27 +0800 |
commit | 410bc000613b355ffcfbcd282061849b5129bdea (patch) | |
tree | 3eff901a5b96eb4ff88d272bed4bb964c6397f1f /template2/server.json.template | |
parent | 889e10a1908c32514edf23518c5ea4c26ffc0ae0 (diff) | |
download | crupest-410bc000613b355ffcfbcd282061849b5129bdea.tar.gz crupest-410bc000613b355ffcfbcd282061849b5129bdea.tar.bz2 crupest-410bc000613b355ffcfbcd282061849b5129bdea.zip |
HALF WORK: for sync.
Diffstat (limited to 'template2/server.json.template')
-rw-r--r-- | template2/server.json.template | 58 |
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 |