Template URI gets written incorrectly
Hi,
When I create a template, it writes the URI incorrectly into the template table in the mailman3 database and the list stops working.
For example, it writes:
http://localhost/mailman3/postorius/api/templates/list/markslist.lists.postm...
When I correct it like so, all is well:
https://lists.postmark.io/mailman3/postorius/api/templates/list/markslist.li...
Have I missed a config setting somewhere, or is this a bug with the older Debian Mailman 3.3.3 ?
/Mark
On 5/23/23 16:51, Mark Dale via Mailman-users wrote:
When I create a template, it writes the URI incorrectly into the template table in the mailman3 database and the list stops working.
For example, it writes:
http://localhost/mailman3/postorius/api/templates/list/markslist.lists.postm...
When I correct it like so, all is well:
https://lists.postmark.io/mailman3/postorius/api/templates/list/markslist.li...
Have I missed a config setting somewhere, or is this a bug with the older Debian Mailman 3.3.3 ?
You need to set
POSTORIUS_TEMPLATE_BASE_URL = 'https://lists.postmark.io/'
in your Django settings. Debian probably has set it to 'http://localhost/'.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2023-05-24 10:11, Mark Sapiro wrote:
On 5/23/23 16:51, Mark Dale via Mailman-users wrote:
When I create a template, it writes the URI incorrectly into the template table in the mailman3 database and the list stops working.
For example, it writes:
http://localhost/mailman3/postorius/api/templates/list/markslist.lists.postm...
When I correct it like so, all is well:
https://lists.postmark.io/mailman3/postorius/api/templates/list/markslist.li...
Have I missed a config setting somewhere, or is this a bug with the older Debian Mailman 3.3.3 ?
You need to set
POSTORIUS_TEMPLATE_BASE_URL = 'https://lists.postmark.io/'
in your Django settings. Debian probably has set it to 'http://localhost/'.
Indeed that was it!
Thanks very much Mark.
/etc/mailman3/mailman-web.py Line 190: POSTORIUS_TEMPLATE_BASE_URL = 'https://lists.postmark.io/'
participants (2)
-
Mark Dale
-
Mark Sapiro