summaryrefslogtreecommitdiff
path: root/django/archives/settings.py
AgeCommit message (Collapse)Author
2022-01-15Fix default authentication configurationCélestin Matte
Add the required authentication backend configuration and include an example for how to set up the pgauth plugin.
2022-01-15Allow configuration of upstream pgweb addressMagnus Hagander
Search forms currently point to the hardcoded address of www.postgresql.org. Add a parameter in the settings to make it possible to configure the domain hosting the /search/ function. Originally from Célestin Matte, but in the end not his patch
2021-11-07Add DEFAULT_AUTO_FIELD for Django 3.2Magnus Hagander
2020-04-01Update middleware and config for Django 2.2Magnus Hagander
2019-06-18Implement basic rate limiting for sending emailMagnus Hagander
Per-user limit that says how many seconds must go between each email. Outgoing emails are also delayed by this much (or we'd miss it)
2019-06-18Ensure session and csrf cookies are secureMagnus Hagander
2019-06-18Only require a user to be subcsribed on hidden archivesMagnus Hagander
For hidden archives, it makes sense to require a subscription in order to be allowed to log in. But for public archives, any user should be able to log in to request a re-send of a message.
2019-06-18Implement email resending in the list archivesMagnus Hagander
This allows a logged-in user to get an email delivered to their mailbox, thereby making it easy to reply to even if they haven't got it already (and don't have a MUA capable of handling mbox files). The email body will go out unmodified (including any list headers that are stored in the archives, but this does not include for example the unsubscribe link). Envelope sender is set to one configured in the ini file, and envelope recipient is set to the email address of the user.
2019-01-04Whitespace fixesMagnus Hagander
2019-01-04Fix indentationMagnus Hagander
Per pep8 warnings, adjust indentation for consistency
2019-01-04Tabs to 4 spacesMagnus Hagander
pep8 standard for indentation
2019-01-04Update django app to python 3Magnus Hagander
2018-04-18Add PGWebContextProcessor from pgwebJonathan S. Katz
This adapts the code for the "gitrev" variable that can be used in templates. This will enable cache busting for self hosted asset files. The path for where the archive app is stored differs from pgweb, so the relative directory is changed in this implementation.
2018-03-25Fix template loaders for django 1.11Magnus Hagander
Seems django 1.11 automatically enables caching template loader, which of course breaks the ability to make any changes to the pages of a website without restarting it. And there is no way to turn it off other than to explicitly configure individual loders (the logic to turn it on in non-debug configurations is hardcoded and cannot be changed).
2018-03-05Fix rendering for django 1.11Magnus Hagander
Can't use render_to_response the old way -- that would put the output of NavContext into the Content-Type header which is clearly very wrong.
2018-03-05Update settings and urls for django 1.11Magnus Hagander
2018-01-15Implement per-list permissionsMagnus Hagander
This assumes we sync subscribers over from the list server (using pglister), getting their community authentication usernames. Then, by requesting a community auth login, it's possible to restrict the session to view only those lists the user is subscribed to. To view emails, the user must be subscribed to *all* the lists that the thread the message belongs to has shown up. This means that messages can dissappear from a listing if somebody CCs in a higher security level list. NOTE! After installing this code, the PUBLIC_ARCHIVES setting must be set to True to retain previous behaviour! Reviewed by Stephen Frost
2017-11-16Generate mbox data from database instead of cached filesMagnus Hagander
Previously we only did this for thread-mbox downloads, but since the move to pglister we need to do it for the main mbox downloads as well. In order to make this more efficient, ensure that we use a server-side cursor when getting the messages. We already sent them back to the webserver in streaming mode, but not between the database and django.
2013-07-10Add some basic API functionalityMagnus Hagander
Ability to view latest messages on a list, and the contents of a thread
2013-04-13Don't generate mbox links for months where there is no mbox fileMagnus Hagander
This can happen because some emails are in the wrong mbox file based on their date, so just generating the mbox linked based on which dates are present in the database can generate extra links.
2012-08-12Only silence importerrors..Magnus Hagander
2012-08-12Don't crash when settings_local.py is missingMagnus Hagander
2012-08-12Add a REST-like API for searchingMagnus Hagander
2012-06-21Add FORCE_SCRIPT_NAME="", required for lighttpdMagnus Hagander
Might want to move this to a local_settings.py sometime in the future
2012-06-21Staticfiles module doesn't exist in deployment django versio..Magnus Hagander
2012-06-21Remove more unneeded stuffMagnus Hagander
2012-06-20Remove unnecessary django apps - this is an extremely basic siteMagnus Hagander
2012-06-11Initial import, because i need somethingMagnus Hagander