I'm trying to get the docker container "owasp/zap2docker-stable:latest" running on an Azure App Service for Containers.
This is in my startup script...
zap-x.sh -daemon -port 8080 -host 0.0.0.0 -config api.addrs.addr.name=.* -config api.addrs.addr.regex=true -config api.key=$API_KEY
If I try browsing to the app service it just keeps redirecting to itself.
There are a couple of factors that might be contributing to this. TLS termination is handled by the app service platform. And I don't think there is a way for ZAP to figure out the public hostname.
I've tried adding an entry to /etc/hosts that corresponds to the public hostname and internal network interface IP address. And then using the hostname for the host parameter but that hasn't worked for me so far.
Any help would be much appreciated. Apologies if I haven't included enough information up front.