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,13 +45,13 @@ services:
|
||||
redis:
|
||||
image: redis:latest
|
||||
|
||||
haproxy:
|
||||
image: os3-haproxy-dev
|
||||
caddy:
|
||||
image: caddy:2.3.0-alpine
|
||||
volumes:
|
||||
- ../haproxy/src:/usr/local/etc/haproxy
|
||||
- ../caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||
depends_on:
|
||||
- client
|
||||
- server
|
||||
- autoupdate
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "8000:8000"
|
||||
|
Loading…
Reference in New Issue
Block a user