Use caddy
This commit is contained in:
parent
5b2f8409e4
commit
dc58752575
26
caddy/Caddyfile
Normal file
26
caddy/Caddyfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
# General Options
|
||||||
|
debug
|
||||||
|
}
|
||||||
|
|
||||||
|
:8000
|
||||||
|
|
||||||
|
reverse_proxy /system/* https://autoupdate:8002 {
|
||||||
|
flush_interval -1
|
||||||
|
|
||||||
|
transport http {
|
||||||
|
tls_insecure_skip_verify
|
||||||
|
versions 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@server {
|
||||||
|
path /apps/*
|
||||||
|
path /rest/*
|
||||||
|
path /server-version.txt
|
||||||
|
}
|
||||||
|
reverse_proxy @server server:8000
|
||||||
|
|
||||||
|
reverse_proxy /media/* media:8000
|
||||||
|
|
||||||
|
reverse_proxy client:4200
|
@ -45,10 +45,10 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
|
||||||
haproxy:
|
caddy:
|
||||||
image: os3-haproxy-dev
|
image: caddy:2.3.0-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ../haproxy/src:/usr/local/etc/haproxy
|
- ../caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||||
depends_on:
|
depends_on:
|
||||||
- client
|
- client
|
||||||
- server
|
- server
|
||||||
|
Loading…
Reference in New Issue
Block a user