FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    FusionAuth, Nginx inside Azure Container App

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    1
    1
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alan.rutter
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post