Commit Graph

110 Commits

Author SHA1 Message Date
Frédéric Péters 53a3226e55 debian: strip secret_key of extraneous spaces/newlines (#67282) 2022-07-15 08:36:31 +02:00
Emmanuel Cazenave 69c7759bdb multitenant: add legacy urls settings loader (#64347) 2022-05-05 14:49:18 +02:00
Emmanuel Cazenave 3e149997e4 middleware: add a maintenance middleware (#63939) 2022-04-21 18:13:34 +02:00
Benjamin Dauvergne 5c1de7d4ad debian: remove warning about use of journald (#63283) 2022-03-29 09:40:31 +02:00
Frédéric Péters 5abcc6d2b4 debian: remove template compat with django < 1.10 from shared config (#62275) 2022-03-01 08:47:28 +01:00
Benjamin Dauvergne 13d74f4169 misc: add context-processor user_urls (#61192)
It introduces three template's variables:
- login_url
- logout_url
- registration_url
- account_url

Each one is adapted to return to the current page.
2022-02-02 11:13:07 +01:00
Valentin Deniaud 1e2cf7f618 templatetags: add as_numeral filters (#57983) 2021-10-19 17:11:23 +02:00
Emmanuel Cazenave cdfe73d441 agent/authentic2: add debug mode for provisionning (#54637)
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details
2021-06-15 18:02:02 +02:00
Benjamin Dauvergne 0f8fe28274 tests: disable syslog logging handler (#51267) 2021-06-01 13:00:10 +02:00
Frédéric Péters 75ec113ec4 debian: increase settings.DATA_UPLOAD_MAX_MEMORY_SIZE 20-fold (#54059) 2021-05-18 09:50:30 +02:00
Frédéric Péters 872f39774a trivial: apply black 2021-05-14 18:40:09 +02:00
Benjamin Dauvergne d1636eeece misc: log DisallowedHost as warnings (#42824) 2021-02-08 14:52:18 +01:00
Frédéric Péters 6beaab79fe debian: enable email backend by default (#50775) 2021-02-02 16:08:48 +01:00
Emmanuel Cazenave cd54c56f8c set CSRF_COOKIE_SAMESITE to None (#49283) 2021-02-02 11:44:52 +01:00
Lauréline Guérin 3ead547aa1
settings: remove old MIDDLEWARE_CLASSES support (#45671)
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head There was a failure building this commit Details
2020-10-13 09:31:15 +02:00
Benjamin Dauvergne 39241002af debian: set journald log level to INFO (#29149)
DEBUG logs must go to a local file now.
2020-08-25 10:37:36 +02:00
Benjamin Dauvergne 8c664bc035 logger: prevent RequestContextFilter multiple execution (#29149) 2020-08-25 10:37:36 +02:00
Benjamin Dauvergne 050dbcb921 logger: deprecate SettingsLogLevel (#29149) 2020-08-25 10:37:36 +02:00
Benjamin Dauvergne e1647d8f56 debian: add InternalIpMiddleware (#29149)
It sets DEBUG=True when current request IP is in settings.INTERNAL_IPS.
2020-08-25 10:37:36 +02:00
Benjamin Dauvergne afe4b98f64 debian: add debug log in /var/log/<app>/debug (#29149)
It's configured through the DEBUG_LOG settings:
* DEBUG_LOG = False, no debug log
* DEBUG_LOG = True, all debug log go to /var/log/<app>/debug
* DEBUG_LOG = app1,app2, only debug log of logger app1 and app2
  go to /var/log/<app>/debug

/var/log/<app>/debug is emptied everyday at midnight.
2020-08-25 10:37:34 +02:00
Frédéric Péters 8b40112c35 middleware: transform cookies to have SameSite=None (#45667) 2020-08-03 09:36:10 +02:00
Frédéric Péters 0012761656 general: use HTTP API to provision users & groups (#43245) 2020-05-29 12:24:18 +02:00
Frédéric Péters 09c8ada5bc debian: don't log SuspiciousFileOperation errors (#42819) 2020-05-15 11:32:38 +02:00
Lauréline Guérin 35f66b3f48
misc: disable django.security.DisallowedRedirect logs (#33620) 2020-05-07 09:17:32 +02:00
Serghei Mihai 5370064071 multitenant: add loader to define MELLON_LOGIN_HINTS setting (#42191) 2020-05-05 15:31:06 +02:00
Nicolas Roche 52ec23f046 seo: add middleware for /robots.txt url (#20263) 2020-04-14 09:07:39 +02:00
Thomas NOËL 296fd6efee celery: increase tasks expiry time to 5 minutes (#40227) 2020-04-10 11:40:39 +02:00
Benjamin Dauvergne c178320985 debian: use MIDDLEWARE in debian_config_common.py (#36584) 2019-10-15 15:22:49 +02:00
Frédéric Péters 7e8d61f077 debian: remove syslog handlers if there's no /dev/log (#36738) 2019-10-08 14:46:03 +02:00
Frédéric Péters 4b6ea35bfc debian: disable syslog loggers if there's no /dev/log (#36738) 2019-10-07 16:34:17 +02:00
Frédéric Péters 2b3d15c97e debian: use open() to read secret key from settings (#36216) 2019-09-18 10:28:12 +02:00
Frédéric Péters ffaa4e2977 misc: remove support for sentry (#35566) 2019-08-24 18:02:48 +02:00
Frédéric Péters 5fd3eb3998 debian: force 0644 as mode for uploaded files (#30905) 2019-02-26 14:02:00 +01:00
Benjamin Dauvergne e9929d3b5b debian: configure journald filters and formatter (#30613)
In order to get logs:
* on par with syslog for the message,
* with structured fields for requests/tenants informations.
2019-02-14 15:22:56 +01:00
Frédéric Péters 7aa49fcf12 misc: look for portal agent associated to user OU when in Authentic (#29658) 2019-02-06 10:30:11 +01:00
Benjamin Dauvergne ffaeb45057 debian: add journald support to debian_config_common (fixes #23471) 2019-01-15 00:15:18 +01:00
Benjamin Dauvergne 8b45ce4986 hobo: add setting loader for variables (#28930)
Variables must be prefixed with SETTING_, suffix .extend and .update are
supported.

Ex.: SETTING_LDAP_AUTH_SETTINGS.extend = [{...}]
2019-01-14 10:36:04 +01:00
Thomas NOËL 513db18396 debian_config_common: force INFO level on django.template logging (#29239) 2018-12-21 14:43:35 +01:00
Frédéric Péters 7bd28f8967 debian: send the Date header of emails in the local time zone (#28775) 2018-12-08 12:04:13 +01:00
Frédéric Péters 44dbfbeed8 multitenant: add loader to get settings from theme (#26636) 2018-11-12 20:13:34 +01:00
Frédéric Péters eef3faf448 logging: force lasso messages to be considered as debug level (#25694) 2018-11-02 09:32:43 +01:00
Frédéric Péters 9239e8d9e6 debian: force empty email prefix (#27174) 2018-10-10 09:58:17 +02:00
Frédéric Péters 6e33678cb9 debian: don't set explicit email prefix as tenant is included (#26958) 2018-10-03 18:38:54 +02:00
Emmanuel Cazenave 1340956832 force email socket timeout to 10 seconds (#26351) 2018-09-17 16:15:12 +02:00
Frédéric Péters aff40308bf multitenant: include tenant domain in logging emails (#25715) 2018-08-29 09:48:26 +02:00
Benjamin Dauvergne fe0f82ab69 debian_config_common: force mellon session backend (fixes #19243)
Also use a cached DB backend to improve performances.
2018-07-27 16:25:48 +02:00
Elias Showk e5f6593327 Revert "debian settings: better compatibility switch for > 1.8 TEMPLATES (#23035)"
This reverts commit f2389cf4dc.
2018-04-20 11:50:19 +02:00
Elias Showk f2389cf4dc debian settings: better compatibility switch for > 1.8 TEMPLATES (#23035) 2018-04-19 15:11:40 +02:00
Frédéric Péters d432df9ff5 general: add possibility to skip all cron jobs (#15470)
This is useful for load balancing as jobs should only be run on one
host.

Original was amended with a condition on "--all-tenants" and help messages.

Signed-off-by: Christophe Siraut <csiraut@entrouvert.com>
2018-04-19 14:32:00 +02:00
Frédéric Péters 8e230861e6 debian: set CSRF_COOKIE_HTTPONLY by default (#21030) 2018-03-09 10:48:40 +01:00