a month later

How does one set these environment variables for Flarum? (there are thousands of roads that lead to Rome, but knowing a well traveled path over figuring stuff out myself always has my preference. (I would suggest adding this (or at least a link to documentation) to the package README as it is (from what I've seen with my limited experience) fairly non-standard)

a month later

I would like to change the queue database number, until now I used the default values, how can I change this environment variable?

I have read this:

For this to work, environment variables have to be set on your host:

In my case I would have to change REDIS_DATABASE_QUEUE, but I don't understand exactly where I should change/put it.

    Darkle I'm not sure if I understand you question correctly, but from what I understand you're struggling to understand how to set any ENV var. Hopefully this article will enlighten you.

      iPurpl3x Now I understood the concept, that's why I didn't explain myself too well in the question, it was for lack of knowledge I had no idea how ENV var worked in Linux, I thought it was something specific for this extension, another thing learned, thanks!

      luceos That's very interesting, so I wouldn't forget/lose the configuration if I migrate server

      So it would be something like this in the config.php?

      <?php return array (
      
      // all the flarum stuff
      
      );
      REDIS_DATABASE_QUEUE=4

        Darkle

        Your code will trigger a fatal error.

        <?php
        
        putenv("REDIS_DATABASE_QUEUE=4");
        
        return [];

        ps. Understand that GB redis setup is an extension wrapped around blomstra/flarum-redis. If you want to force the connection setting, you'd might as well use that package directly. See https://github.com/blomstra/flarum-redis#set-up

        23 days later

        Hello, after successfully installing the plugin, notifications do not work when the plugin is active. If I turn off the plugin, the notifications work successfully. Will there be an update for this issue? I have disabled the plugin for now.

          2 months later
          REDIS_HOST=null # Required
          REDIS_PORT=6379 # Optional, else uses default
          REDIS_PASSWORD=null # Required, can be an empty string
          REDIS_DATABASE_CACHE=1 # Optional, else uses default
          REDIS_DATABASE_QUEUE=2 # Optional, else uses default
          REDIS_DATABASE_SESSION=3 # Optional, else uses default

          Where should I add it?

          luceos Please help me. 😅

          • Hari replied to this.
            2 months later

            1.2.0

            • Use webpack 5
            • Require Flarum 1.2.0

            Installation

            composer require glowingblue/redis-setup:"*"
            2 years later

            So I’m running a single Redis instance among three sites and have different databases setup in the config file but on two of the sites it’s not working correctly. Main site is using 1-3 like in the setup and the second site is using 4-6 and the third is 7-9 but the two other sites that use 4-9 aren’t working correctly. Not sure what’s going on. I have multiple supervisor files pointing to the directory of all three sites and all three are showing running but again nothing is working as it should. What could I be doing wrong?

            10 days later

            ernestdefoe Please note that glowingblue/redis-setup is just a wrapper of blomstra/flarum-redis. If I understand you correctly, your issue is not related to the features which glowingblue/redis-setup add, but to Redis and blomstra/flarum-redis itself. Therefore, you might be more lucky to find answers in https://discuss.flarum.org/d/21873-redis-sessions-cache-queues.

            In any case, it's difficult to tell what the issue is from your description. I would suggest looking at the official Flarum troubleshooting guide https://docs.flarum.org/troubleshoot/ and see if it helps.

            5 months later

            When using GB Redis Setup plugin, if "Redis Message Queue" is enabled, only the test emails will be sent, other situation (e.g. registration) not work. After disabled, everything works right.
            How should this be handled please, has there ever been a similar situation. Thanks a lot for your time. @luceos

              woolio I don't manage this extension. But sounds like your queue worker isn't running.

              21 days later
              3 months later