Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved ProxyAuth Not Working

    Support
    proxyauth
    2
    4
    36
    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
      rossmaclean last edited by girish

      Hey,

      I'm trying to use the proxyAuth addon with an app I've packaged. It's my understanding that the proxy auth sits between the reverse proxy and the app container and therefore requires no changes to my app code? The app I packaged is running Nginx to server a site so just confirming I don't need to make changes to the nginx config for that.

      Here's my CloudronManifest

      {
        "version": "0.1.0",
        "healthCheckPath": "/",
        "httpPort": 80,
        "addons": {
          "localstorage": {},
          "proxyAuth": {}
        },
        "manifestVersion": 2
      }
      

      The issue I'm having is that when I go to my site it's not giving me the login prompt. I've tried on other devices/incognito etc in case it was caching the page/creds.

      Cheers!
      Ross

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @rossmaclean last edited by

        @rossmaclean that should all be needed. But did you try a fresh install instead of updating an existing app ?

        R 1 Reply Last reply Reply Quote 0
        • R
          rossmaclean @girish last edited by rossmaclean

          @girish I didn't I was updating an existing app. Installing it fresh has fixed it!

          Could the docs be updated to note that the app has to be completely reinstalled for it to work?

          Cheers

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @rossmaclean last edited by

            @rossmaclean Currently, there is a limitation that "auth" stuff (including LDAP integration) cannot be turned on and off dynamically. It is chosen at install time. Since the app didn't have proxyAuth initially, it cannot be turned on later with an update.

            Will put a note in the docs.

            1 Reply Last reply Reply Quote 0
            • Topic has been marked as a question  girish girish 
            • Topic has been marked as solved  girish girish 
            • First post
              Last post
            Powered by NodeBB