diff options
author | crupest <crupest@outlook.com> | 2024-06-16 11:38:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-08-15 00:19:35 +0800 |
commit | a896f9c39eb6aca748e1a52e3342c4047736bb0f (patch) | |
tree | b543c73f628e7c2aa6381828274e9e8f7d241e2e /template | |
parent | 909c5e8aa53017eaffd4171835b3c66949c64f7f (diff) | |
download | crupest-a896f9c39eb6aca748e1a52e3342c4047736bb0f.tar.gz crupest-a896f9c39eb6aca748e1a52e3342c4047736bb0f.tar.bz2 crupest-a896f9c39eb6aca748e1a52e3342c4047736bb0f.zip |
feat(docker/debian-dev): fix compose file and add nginx server.
Diffstat (limited to 'template')
-rw-r--r-- | template/docker-compose.yaml.template | 2 | ||||
-rw-r--r-- | template/nginx/server.json | 53 |
2 files changed, 30 insertions, 25 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index 4f85036..04ab98b 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -148,7 +148,7 @@ services: debian-dev: pull_policy: build build: - context: ./docker/code-server + context: ./docker/crupest-debian-dev dockerfile: Dockerfile pull: true tags: diff --git a/template/nginx/server.json b/template/nginx/server.json index e810234..eadce1e 100644 --- a/template/nginx/server.json +++ b/template/nginx/server.json @@ -1,24 +1,29 @@ -{
- "$schema": "./server.schema.json",
- "sites": [
- {
- "type": "reverse-proxy",
- "subdomain": "timeline",
- "upstream": "timeline:5000"
- },
- {
- "type": "static-file",
- "subdomain": "blog",
- "root": "/srv/blog"
- },
- {
- "type": "redirect",
- "subdomain": "github",
- "url": "https://github.com/crupest"
- },
- {
- "type": "cert-only",
- "subdomain": "mail"
- }
- ]
-}
+{ + "$schema": "./server.schema.json", + "sites": [ + { + "type": "reverse-proxy", + "subdomain": "timeline", + "upstream": "timeline:5000" + }, + { + "type": "reverse-proxy", + "subdomain": "code", + "upstream": "debian-dev:8080" + }, + { + "type": "static-file", + "subdomain": "blog", + "root": "/srv/blog" + }, + { + "type": "redirect", + "subdomain": "github", + "url": "https://github.com/crupest" + }, + { + "type": "cert-only", + "subdomain": "mail" + } + ] +} |