Commit Graph

247 Commits

Author SHA1 Message Date
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 fd1c99f073 debian: use cheaper uwsgi subsystem (#45456) 2020-07-24 15:23:26 +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
Frédéric Péters 24e652270e debian: adapt breaks/replaces for actual version numbers (#41640) 2020-04-15 15:39:47 +02:00
Frédéric Péters 8c0575d4cb debian: fix reference to python-celery-common (#41640) 2020-04-15 15:37:55 +02:00
Frédéric Péters dd6d9c8b25 debian: run hobo & hobo-agent with python 3 (#41640) 2020-04-15 14:20:04 +02:00
Frédéric Péters 12e5181347 build: switch to scss (#41672) 2020-04-14 16:56:48 +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
Thomas NOËL c95a17bd87 debian: log tenants names on migrate_schemas 2020-02-12 15:25:25 +01:00
Christophe Siraut 128a8cd76a hobo-agent: kill celery agent after 100 tasks (#39131) 2020-01-21 10:48:49 +01: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 1ded6ea0cb misc: update various parts for Python 3 compatibility (missed bit, pt3) (#36093) 2019-09-13 14:20:19 +02:00
Frédéric Péters 4f3bfc31eb debian: always run hobo agent with python 2 (#36095) 2019-09-13 10:08:22 +02:00
Frédéric Péters ac3c17666b debian: remove graypy dependency (#35567) 2019-08-24 18:04:23 +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 7728071795 debian: add missing python3-setuptools to build-depends 2019-08-24 17:08:19 +02:00
Frédéric Péters bab13ba977 debian: build a python3-hobo package (#35493) 2019-08-24 17:00:19 +02:00
Frédéric Péters 4c39a9d35f misc: use django.utils.six (#35368) 2019-08-12 13:58:48 +02:00
Christophe Siraut 6583fa518f environment: use current domain name for services creation form (#34212) 2019-08-12 13:44:32 +02:00
Frédéric Péters df4e96f847 debian: move python-systemd to depends (#33699) 2019-06-05 12:09:04 +02:00
Frédéric Péters f0d10f92a9 misc: require django 1.11 (#33238) 2019-05-31 08:28:42 +02:00
Frédéric Péters 918a53f5cf debian: add daily job to clean sessions (#33129) 2019-05-16 17:15:02 +02:00
Christophe Siraut 1b9704742f add default_from_email checks (#24519) 2019-04-17 16:03:30 +02:00
Christophe Siraut 2e02dd0d35 debian: bump debhelper compatibility level (#32260) 2019-04-16 14:38:11 +02:00
Frédéric Péters f5495c72d0 debian: don't start hobo-agent if policy-rc.d says so (#14724) 2019-03-08 00:11:49 +01:00
Frédéric Péters 811c05bfd1 misc: remove obsolete/never used piwik support (#30973) 2019-03-04 11:19:09 +01:00
Thomas NOËL 4645073b5f debian: refine uwsgi settings (#30933) 2019-02-27 12:16:49 +01: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
Frédéric Péters 2e22202dbb debian: switch to uwsgi and a systemd unit (#29472) 2019-01-14 14:25:45 +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