Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / General

Change domain name

Change domain name

Wekan / General · December 4, 2020 at 7:40pm

I have a Wekan snap installation that is accessible by two different domain names. Most boards were defined when Wekan was accessible by only one domain name (first domain). I can view the boards list and view a board using the second domain, but when I click on an item for details it reloads the board using the first domain name.

Is there a way for boards to be domain name agnostic?

John

Load previous messages

December 4, 2020 at 10:48pm

You would need to start another copy of Wekan with different root-url, but same database address. There is example at docker-compose.yml at https://github.com/wekan/wekan , in that case other root-url is for office and other for VPN users. For example, 2 or more wekan-app containers (like wekan-app and wekan-app2) and one wekan-db container. Then in Caddy's Caddyfile (or other webserver config), have those domains proxy to different wekan localhost ports. Like wekan-app at 4000 and wekan-app2 at 4001. When you already have Snap, it could maybe be possible with one snap, and other with Docker or Source Bundle https://github.com/wekan/wekan/wiki/Raspberry-Pi . Or, you could look at https://wekan.github.io Download "Many Snaps on LXC" where you could maybe install 2 different Wekan Snaps in different LXC containers, and try to change 2nd Wekan to point to 1nd Wekan's mongo-url . But for being domain name agnostic, I don't know is that really possible, because root-url setting is from Meteor web frameworks where usually Meteor apps require that setting to be set to valid value, for Meteor to work correctly. Anyway, that 2x/3x etc wekan-app with same MongoDB works.

    • reply
    • like

    December 5, 2020 at 8:02am

    Thanks for the detailed response. I am still a bit confused as I thought the domain name for running Meteor and the Wekan server would be localhost as it runs on localhost:8888 and is accessed from the internet by Apache proxy hosts.

    Also, how is root-url set? I searched the snap container but did not see any settings.

      Edited
      • reply
      • like

      December 5, 2020 at 9:34pm

      At wekan server, command line: wekan.help | less . It's mentioned at https://snapcraft.io/wekan

        • reply
        • like

        sudo snap set wekan root-url='https://boards.example.com'

          • reply
          • like

          sudo snap set wekan port='8888'

            • reply
            • like

            For additional wekan-app container, docker-compose.yml at https://github.com/wekan/wekan has text ROOT_URL=

              • reply
              • like

              Or that https://github.com/wekan/wekan/wiki/Raspberry-Pi page has start-wekan.sh that has ROOT_URL= , or alternatively set it at systemd service file, like mentioned in that wiki page, or init.d

                • reply
                • like

                Also more info about root-url at https://github.com/wekan/wekan/wiki/Settings

                  • reply
                  • like
                  • reply
                  • like

                  December 7, 2020 at 3:00pm

                  Thank you. One further question.

                  I noticed that some of the snap set variables can also be set inside the interface, like the email settings. So it seems that settings entered in the interface admin panel override snap settings. Is this correct?

                    • reply
                    • like

                    For email, first snap settings should be set, and then same settings to Admin Panel, then at Admin Panel click test sending email. For more info, see https://github.com/wekan/wekan/wiki/Troubleshooting-Mail

                      • reply
                      • like