FusionAuth, Nginx inside Azure Container App
-
Trying to run FusionAuth inside container app using Nginx as a proxy to provide the required 443 Forwarded-Port header.
When I try to access FusionAuth URl, it just spins before giving stream timeout. Here's my Nginx conf file.
server { listen 80; server_name myserver.australiaeast.azurecontainerapps.io; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Port '443'; proxy_http_version 1.1; proxy_pass https://myserver.australiaeast.azurecontainerapps.io; } }
and here's the Dockerfile
FROM fusionauth/fusionauth-app:latest COPY ./fusionauth.properties /usr/local/fusionauth/config FROM docker.io/library/nginx:latest COPY ./nginx.conf /etc/nginx/conf.d/default.conf
Any help greatly appreciated!