Excerpts from tlhackque--- via Mailman-users's message of June 24, 2017 4:21 am:
I had to read code to discover that the web UI (Postorious) server address doesn't exist in any config file.
That is True, there is no stright forward way for Mailman Core to know who is using the API and where is the Web UI working. I *think* "Web Host" is used to generate emails, but that can't always be completely accurate because there is no easy way to know what is the "root" url for Postorius and Hyperkitty. Generally, the default configurations place it at "/postorius/" and "/hyperkitty/", but there are installations where it is placed at "/mailman3/" and "/archives/".
To bind it to something other than localhost, you put the desired ip address & port on the
python manage.py runserver
command line (in mailman-suite_project.
Ok, so you should never use this in production. This command starts a "development" server which is only supposed to be used in the development environment. For any production use, in general for any python web app, we use a wsgi server which interfaces between Django and a "real" web server like Nginx or Apache. I would recommend using uwsgi. This1 and 2 might be of help.
There is some configuration over here3 that might help you get it running. You would have to change some parameters in the configuration though.
It must be an IP address - it doesn't resolve DNS names. The port is appended to the IP address with a ':'.
So, in venv 2.7
cd mailman-suite_project && python manage.py runserver 10.0.0.11:8000
will work.There are all sorts of issues if your network is at all public, but in my case, a multi-machine walled garden, with no local web browser, it allowed bootstrapping to continue.
It is not supposed to be public and should only be used for development.
The runserver command also takes --ipv6 (or -6) to bind to an IPv6 address, --nothreading and --noreload also exist (but i haven't tracked down whethere they're useful')
There are a whole lot of other optins available to python manage.py
command
which you can find in the documentation for Django.
Hope this saves someone else a lot of research...
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj