[Mailman-Users] Re: Alternate URL hostname in web UI

2020-07-28 Thread Mark Sapiro
On 7/28/20 8:02 AM, Kevin Bowen wrote:
> Thanks. One other question: in my existing mm_cfg.py I have all three of
> the following:
> DEFAULT_HOST_NAME = 'mailman.domain.com'
> DEFAULT_URL_HOST = 'mailman.domain.com'
> DEFAULT_EMAIL_HOST = 'mailman.domain.com'
> 
> In Defaults.py, it explains that DEFAULT_HOST_NAME is deprecated, but the
> language is unclear as to what overrides what. In this use case, do I need
> to change DEFAULT_HOST_NAME as well, or only DEFAULT_URL_HOST?


Just remove DEFAULT_HOST_NAME from mm_cfg.py entirely. It has nothing to
do with the web host. It is the former name for what is now called
DEFAULT_EMAIL_HOST. If you leave it, it will override anything you set
for DEFAULT_EMAIL_HOST for new list creation.

The situation with DEFAULT_URL_HOST is more complicated. There was a
former DEFAULT_URL setting which was used to set the list's web_page_url
at list creation time. It was the full URL. The current setting is
DEFAULT_URL_HOST which is interpolated into DEFAULT_URL_PATTERN to make
the setting for the list's web_page_url at list creation time.

fix_url which you need to run after changing these things does not
consider DEFAULT_HOST_NAME or DEFAULT_URL at all and these should not be
set in mm_cfg.py in any case.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Alternate URL hostname in web UI

2020-07-28 Thread Kevin Bowen
Thanks. One other question: in my existing mm_cfg.py I have all three of
the following:
DEFAULT_HOST_NAME = 'mailman.domain.com'
DEFAULT_URL_HOST = 'mailman.domain.com'
DEFAULT_EMAIL_HOST = 'mailman.domain.com'

In Defaults.py, it explains that DEFAULT_HOST_NAME is deprecated, but the
language is unclear as to what overrides what. In this use case, do I need
to change DEFAULT_HOST_NAME as well, or only DEFAULT_URL_HOST?

Kevin Bowen
kevin.t.bo...@gmail.com 


On Mon, Jul 27, 2020 at 9:19 PM Mark Sapiro  wrote:

> On 7/27/20 11:22 AM, Kevin Bowen wrote:
> > Am I understanding correctly that DEFAULT_URL_HOST in
> > mm_cfg.py would be the way to accomplish that? And would that affect only
> > the URLs used in the web UI, it wouldn't change anything about the actual
> > mail handling under the hood?
>
> That is correct, but you also need to run fix_url after changing
> DEFAULT_URL_HOST. See .
>
> --
> Mark Sapiro The highway is for gamblers,
> San Francisco Bay Area, Californiabetter use your sense - B. Dylan
> --
> Mailman-Users mailing list -- mailman-users@python.org
> To unsubscribe send an email to mailman-users-le...@python.org
> https://mail.python.org/mailman3/lists/mailman-users.python.org/
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Security Policy: http://wiki.list.org/x/QIA9
> Searchable Archives:
> https://www.mail-archive.com/mailman-users@python.org/
> https://mail.python.org/archives/list/mailman-users@python.org/
>
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Alternate URL hostname in web UI

2020-07-27 Thread Mark Sapiro
On 7/27/20 11:22 AM, Kevin Bowen wrote:
> Am I understanding correctly that DEFAULT_URL_HOST in
> mm_cfg.py would be the way to accomplish that? And would that affect only
> the URLs used in the web UI, it wouldn't change anything about the actual
> mail handling under the hood?

That is correct, but you also need to run fix_url after changing
DEFAULT_URL_HOST. See .

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Alternate URL hostname in web UI

2020-07-27 Thread Kevin Bowen
I'm not sure. I suspect it might be possible, but I'm not sure how, so if I
could just have mailman itself present the alternate URL, that would be
simpler.

Kevin Bowen
kevin.t.bo...@gmail.com 


On Mon, Jul 27, 2020 at 1:46 PM Grant Taylor via Mailman-Users <
mailman-users@python.org> wrote:

> On 7/27/20 12:22 PM, Kevin Bowen wrote:
> > Hello,
>
> Hi,
>
> > I'm trying to set up the mailman (2.1.9) web UI behind a load balancer
> > in order to offload the TLS to it (because this is an ancient machine
> > which doesn't support modern TLS versions, and newer browsers are
> > complaining about it). I need all the links in the web UI to use
> > the new hostname that's in front of the loadbalancer, instead of the
> > actual hostname behind the loadbalancer. Am I understanding correctly
> > that DEFAULT_URL_HOST in mm_cfg.py would be the way to accomplish
> > that? And would that affect only the URLs used in the web UI, it
> > wouldn't change anything about the actual mail handling under the hood?
>
> I can't speak directly to the DEFAULT_URL_HOST.
>
> Does the load balancer support rewriting things as traffic passes
> through it?  I know it's possible to get Apache to do this.
>
>
>
> --
> Grant. . . .
> unix || die
>
> --
> Mailman-Users mailing list -- mailman-users@python.org
> To unsubscribe send an email to mailman-users-le...@python.org
> https://mail.python.org/mailman3/lists/mailman-users.python.org/
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Security Policy: http://wiki.list.org/x/QIA9
> Searchable Archives:
> https://www.mail-archive.com/mailman-users@python.org/
> https://mail.python.org/archives/list/mailman-users@python.org/
>
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Alternate URL hostname in web UI

2020-07-27 Thread Grant Taylor via Mailman-Users

On 7/27/20 12:22 PM, Kevin Bowen wrote:

Hello,


Hi,

I'm trying to set up the mailman (2.1.9) web UI behind a load balancer 
in order to offload the TLS to it (because this is an ancient machine 
which doesn't support modern TLS versions, and newer browsers are 
complaining about it). I need all the links in the web UI to use 
the new hostname that's in front of the loadbalancer, instead of the 
actual hostname behind the loadbalancer. Am I understanding correctly 
that DEFAULT_URL_HOST in mm_cfg.py would be the way to accomplish 
that? And would that affect only the URLs used in the web UI, it 
wouldn't change anything about the actual mail handling under the hood?


I can't speak directly to the DEFAULT_URL_HOST.

Does the load balancer support rewriting things as traffic passes 
through it?  I know it's possible to get Apache to do this.




--
Grant. . . .
unix || die



smime.p7s
Description: S/MIME Cryptographic Signature
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/