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

    Fusionauth on azure app service for containers

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    3
    4
    2.3k
    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.
    • R
      rafal.glebocki
      last edited by

      Hey, I want to host fusionauth from docker image on azure app service for containers. I have adjusted the docker-compose file. Here it is:

      version: '3'
      
      services:
        fusionauth:
          image: fusionauth/fusionauth-app:latest
          environment:
            DATABASE_URL: jdbc:postgresql://***.postgres.database.azure.com:5432/fusionauth
            DATABASE_ROOT_USERNAME: postgres
            DATABASE_ROOT_PASSWORD: ***
            DATABASE_USERNAME: fusionauth
            DATABASE_PASSWORD: ***
            FUSIONAUTH_APP_MEMORY: 512M
            FUSIONAUTH_APP_RUNTIME_MODE: development
            FUSIONAUTH_APP_URL: http://fusionauth:9011
            SEARCH_TYPE: database
            FUSIONAUTH_APP_SILENT_MODE: false
      
          restart: unless-stopped
          ports:
            - 80:9011
            - 443:9011
          volumes:
            - fusionauth_config:/usr/local/fusionauth/config
      
      volumes:
        fusionauth_config:
      

      I'm able to log in but getting this proxy warning. 3f510561-21be-4d4e-b39e-ee0724a3c14e-image.png

      Does anybody is familiar with hosting it on azure and can advice how I can tune in the app service configuration for it to work? I have read, that we need to route all traffic through proxy, is there other way? What is the best setup for this in the Azure environment?

      Thanks,
      Rafal

      danD 1 Reply Last reply Reply Quote 1
      • danD
        dan @rafal.glebocki
        last edited by

        @rafal-glebocki

        Welcome to the FusionAuth community!

        I'm not an Azure expert, but this stackoverflow question looks helpful: https://stackoverflow.com/questions/56022733/how-to-set-custom-headers-for-every-request-on-azure-app-service

        As mentioned in the FusionAuth error message, to get FusionAuth working correctly, you'll need to pass the required headers to it (otherwise the cookies it sets will not have the correct domain, among other things).

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        R 1 Reply Last reply Reply Quote 0
        • R
          rafal.glebocki @dan
          last edited by

          Thanks @dan, indeed I routed traffic through application gateway and it worked out 🙂

          D 1 Reply Last reply Reply Quote 0
          • D
            dlott @rafal.glebocki
            last edited by

            @rafal-glebocki
            I'm working through the same issue. I've setup an Application Gateway but it doesn't appear to be working. Would you share your configuration?

            1 Reply Last reply Reply Quote 0
            • mark.robustelliM mark.robustelli referenced this topic on
            • First post
              Last post