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 | 209b952b7ad0dd523d4eeb921fb051b7158497d2 (patch) | |
| tree | b543c73f628e7c2aa6381828274e9e8f7d241e2e /template/nginx | |
| parent | 0dc32c4f8da4f0f52e857775aa240eb3ddca0e9c (diff) | |
| download | crupest-209b952b7ad0dd523d4eeb921fb051b7158497d2.tar.gz crupest-209b952b7ad0dd523d4eeb921fb051b7158497d2.tar.bz2 crupest-209b952b7ad0dd523d4eeb921fb051b7158497d2.zip  | |
feat(docker/debian-dev): fix compose file and add nginx server.
Diffstat (limited to 'template/nginx')
| -rw-r--r-- | template/nginx/server.json | 53 | 
1 files changed, 29 insertions, 24 deletions
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" +        } +    ] +}  | 
