aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-06-16 11:38:17 +0800
committercrupest <crupest@outlook.com>2024-08-15 00:19:35 +0800
commita896f9c39eb6aca748e1a52e3342c4047736bb0f (patch)
treeb543c73f628e7c2aa6381828274e9e8f7d241e2e /template
parent909c5e8aa53017eaffd4171835b3c66949c64f7f (diff)
downloadcrupest-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.template2
-rw-r--r--template/nginx/server.json53
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"
+ }
+ ]
+}