Use https in dev mode

This commit is contained in:
Oskar Hahn 2021-02-06 11:47:38 +01:00
parent 180de2d3a9
commit ab2a8ca419
3 changed files with 22 additions and 2 deletions

View File

@ -5,7 +5,7 @@
:8000
reverse_proxy /system/* http://autoupdate:8002 {
reverse_proxy /system/* autoupdate:8002 {
flush_interval -1
}

20
caddy/Caddyfile.dev Normal file
View File

@ -0,0 +1,20 @@
{
# Enable debug output
debug
}
localhost:8000
reverse_proxy /system/* autoupdate:8002 {
flush_interval -1
}
@server {
path /apps/*
path /rest/*
path /server-version.txt
path /media/*
}
reverse_proxy @server server:8000
reverse_proxy client:4200

View File

@ -48,7 +48,7 @@ services:
caddy:
image: caddy:2.3.0-alpine
volumes:
- ../caddy/Caddyfile:/etc/caddy/Caddyfile
- ../caddy/Caddyfile.dev:/etc/caddy/Caddyfile
depends_on:
- client
- server