[Pkg-mailman-hackers] Bug#903104: Bug#903104: Bug#903104: Configuration of base url
bgrpt3 at toplitzer.net
bgrpt3 at toplitzer.net
Mon Jul 9 17:10:40 BST 2018
Am Montag, 9. Juli 2018, 00:06:33 CEST schrieben Sie:
> Le dimanche 08 juillet 2018 à 13:03:06+0200, bgrpt3 at toplitzer.net a écrit :
> > > > 2. setting the ROOT_URLCONF = 'urls2' in the
> > > > /etc/mailman3/mailman-web.py
> > > >
> > > > or /usr/share/mailman3-web/settings.py
> > > > and adding a link in /usr/share/mailman3-web/urls2.py to
> > > > file /etc/mailman3/mailman-web.urls2.py
> > > >
> > > > containing:
> > > > ======
> > > > from django.conf.urls import include, url
> > > > from django.contrib import admin
> > > > from django.core.urlresolvers import reverse_lazy
> > > > from django.views.generic import RedirectView
> > > >
> > > > urlpatterns = [
> > > >
> > > > url(r'^<additional-base-url>', include('urls')),
> > > >
> > > > ]
> > > > =====
> > >
> > > Can you give me a little more intel on what you'd like to achieve by
> > > modifying/allowing modifications of the urls set of the application?
> > >
> > > Mind that adding such feature means allowing the shared memory of the
> > > django app to be accessed by non-upstream code. Should a user badly
> > > implement features, this could possibly compromise all his mailman3
> > > setup. I'm not sure it's a sane thing to do, but I'm not opposed to it
> > > either.
> > >
> > > So, let's discuss, think, and we'll try to find an appropriate solution
> > > that pleases anyone but does not compromise the app stability.
> >
> > I just don't want to expose mailman on the default URL, similar as
> > other sites like
> > https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/ do.
> >
> > If there is an other simple method to achieve this I'm happy too.
> >
> > Thank you for you question!
> > Cheers!
>
> Via the webserver, without any trouble. :)
Yes? How? I'm using nginx with following configuration:
upstream mailman3 {
server unix:/run/mailman3/web/uwsgi.sock fail_timeout=0;
}
server {
...
location /somebaseurl1 {
uwsgi_pass mailman3;
include /etc/nginx/uwsgi_params;
}
location /somebaseurl1/mailman3/static {
alias /var/lib/mailman3/web/static;
}
location /somebaseurl1/mailman3/static/favicon.ico {
alias /var/lib/mailman3/web/static/postorius/img/favicon.ico;
}
}
is not working (Not Found) without the above fixes. Working links in
generated Mails (confirmation links etc.) are also important.
TIA for your help!
Cheers!
More information about the Pkg-mailman-hackers
mailing list