Use caddy

This commit is contained in:
Oskar Hahn 2021-02-04 20:54:57 +01:00
parent 5b2f8409e4
commit dc58752575
2 changed files with 30 additions and 4 deletions

26
caddy/Caddyfile Normal file
View 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

View File

@ -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"