Added autodiscover HTTP url password protected only on main url, not config.xml
This commit is contained in:
parent
a0c832a825
commit
11c9920ca9
@ -13,7 +13,7 @@ config_autodiscover() {
|
||||
mkdir -p /federated/apps/autodiscover
|
||||
fi
|
||||
|
||||
# TRAEFIK_HTTPAUTH_STRING_AUTODISCOVER=$(echo `htpasswd -nb admin@$DOMAIN $ADMINPASS` | sed -e s/\\$/\\$\\$/g)
|
||||
TRAEFIK_HTTPAUTH_STRING_AUTODISCOVER=$(echo `htpasswd -nb admin@$DOMAIN $ADMINPASS` | sed -e s/\\$/\\$\\$/g)
|
||||
|
||||
cat > /federated/apps/autodiscover/docker-compose.yml <<EOF
|
||||
version: '3.7'
|
||||
@ -37,8 +37,13 @@ services:
|
||||
- "traefik.http.routers.autodiscover.entrypoints=websecure"
|
||||
- "traefik.http.routers.autodiscover.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.autodiscover.loadbalancer.server.port=8000"
|
||||
# - "traefik.http.routers.autodiscover.middlewares=autodiscover-auth"
|
||||
# - "traefik.http.middlewares.autodiscover-auth.basicauth.users=$TRAEFIK_HTTPAUTH_STRING_AUTODISCOVER"
|
||||
- "traefik.http.routers.autodiscover.middlewares=autodiscover-auth"
|
||||
- "traefik.http.middlewares.autodiscover-auth.basicauth.users=$TRAEFIK_HTTPAUTH_STRING_AUTODISCOVER"
|
||||
- "traefik.http.routers.autodiscovernew.rule=Host(\`autoconfig.$DOMAIN\`,\`autodiscover.$DOMAIN\`) && PathPrefix(\`/mail\`)"
|
||||
- "traefik.http.routers.autodiscovernew.entrypoints=websecure"
|
||||
- "traefik.http.routers.autodiscovernew.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.autodiscovernew.service=autodiscovernew"
|
||||
- "traefik.http.services.autodiscovernew.loadbalancer.server.port=8000"
|
||||
|
||||
networks:
|
||||
federated:
|
||||
|
Loading…
x
Reference in New Issue
Block a user