Merge pull request #5862 from ostcar/caddy-dev

Use https in dev mode
This commit is contained in:
Emanuel Schütze 2021-02-06 14:28:25 +01:00 committed by GitHub
commit ac0a27276c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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