'How to change default mindsdb gui port

I am deploying MindsDB on my environment but I want to change the default port 47335 that MindsDB is starting the GUI. Can this be achieved by setting up an environment variable or do I need to change it in the code?



Solution 1:[1]

You can achieve that by extending the default configuration that mindsdb use. Create a new file named config.json and get the config structure from this location. Then just change the value under HTTP port to the required port as:

  "api": {
                "http": {
                    "host": "127.0.0.1",
                    "port": ""
                },

After that just provide the location to the config as a parameter to the start command as:

python -m mindsdb --config=config.json

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Zoran Pandovski