Commit Graph
86 Commits
Author SHA1 Message Date
Antoine NguyenandSpitfireap ece58ddb93 Better login/logout actions 2024-06-22 19:44:52 +02:00
Spitfireap c106ecb649 PoC OIDC frontend 2024-06-22 19:44:51 +02:00
Antoine NguyenandSpitfireap d2ef09b7f2 WIP: sieve filters 2024-06-22 19:44:45 +02:00
Antoine Nguyen 365e1001a2 WIP: postfix autoreply merged back to core repo 2024-03-15 11:55:55 +01:00
Antoine Nguyen 89cc0cf2a3 Code reformatted using black 2024-02-20 21:45:07 +01:00
Spitfireap 53d16ebd81 Changed settings 2 2023-11-07 21:42:02 +01:00
Spitfireap f2d36ae3e2 Changed settings 2023-11-07 21:35:59 +01:00
SpitfireapandSpitfireap 81fefe81e1 Use REDIS cache instead, updated frontend locals
Removed old code
2023-11-07 19:43:49 +01:00
Spitap 7da3017745 squashed old attempt
Refactor

Improved test

Revert "Use SimpleWorker for the job test"

This reverts commit f7ea07d19a43ba0455d3a251c216c50f94a1ac66.

Force job to run

Empty queue before bursting jobs

Added test

Updated test

Switched json encoder

Removed call to doveadm on user login

Fixed issues, updated doc

Reduce doveadm calls
2023-11-07 19:43:44 +01:00
Spitap 41bc987515 Changed user for dkim management 2023-07-21 11:34:16 +02:00
Spitap a57b0fef2e Keep settings consistent between dev and prod 2023-06-27 15:18:17 +02:00
SpitapandAntoine Nguyen f05478bccd added rq
Co-Authored-By: Antoine Nguyen <tonio@ngyn.org>
2023-06-23 17:10:59 +02:00
Spitap 5ae0132100 updated workflow, update docker 2023-05-04 08:17:30 +02:00
SpitapandAntoine Nguyen a41c5b658e Updated doc, rename_app, added throttles 2023-04-18 15:44:08 +02:00
SpitapandAntoine Nguyen 415aefc764 Started import work 2023-04-18 15:44:08 +02:00
Spitap a3a71f03ef merge from master 2023-02-23 20:51:43 +01:00
Antoine Nguyen 7745ea4f0b WIP: Moved DMARC plugin back to core repo 2023-02-23 18:08:13 +01:00
Spitap 00a6b63841 added pdfcredential native support 2023-02-18 11:52:04 +01:00
Gaëtan L 0424a6c88b Change middlwares order and set cookies cookies instead of using deprecated sessions for language switching 2023-02-17 11:20:02 +01:00
Antoine NguyenandGitHub 881baea891 Merge pull request #2784 from modoboa/feature/add_new_admin_docker_compose
Make the new admin available with docker compose
2023-02-16 17:18:36 +01:00
Gaëtan L c983be490a Fix vue config when using docker 2023-02-16 16:48:29 +01:00
Spitap 30a8a59906 Fixed default new-admin url 2023-02-11 16:41:44 +01:00
Spitap b79dffada8 fixed test 2023-02-08 14:08:16 +01:00
Spitap bee1342f4d fix 2023-02-01 12:16:44 +01:00
Spitap bde07163b0 Fixed default throttle class 2023-01-27 17:41:32 +01:00
Spitap 126f3a7ea5 Tried to create test 2023-01-27 17:15:42 +01:00
Spitap 2e9f43d3a7 Improved custom throttling 2023-01-27 16:55:45 +01:00
Spitap 0d2f3d05a3 Added throttling to v2 api routes 2023-01-27 16:27:52 +01:00
Spitap 955b5016fb Api throttling 2023-01-27 15:14:59 +01:00
Antoine Nguyen 5aa1886ad3 Added locking mechanism to logparser command
see #2754
2023-01-25 17:20:20 +01:00
Spitap 39af0485f8 Imported to main repo 2022-12-05 16:57:38 +01:00
Antoine Nguyen e87c3ad0b2 Better fix to avoid issue with MySQL. 2022-10-12 11:47:33 +02:00
Antoine Nguyen d4b3366ff3 Added unit tests 2022-02-04 12:03:35 +01:00
Antoine Nguyen cc1ae428c4 User forward form 2022-01-12 11:46:10 +01:00
Antoine Nguyen 8ee4095b3c Try to set timezone on the host. 2021-06-17 16:04:04 +02:00
Antoine Nguyen 10dd93d3f7 Try in django settings. 2021-06-17 15:57:15 +02:00
Antoine Nguyen 3d4558d3e2 Fixed tests settings. 2021-06-17 15:27:18 +02:00
Antoine Nguyen ec737efc26 Cleanup and unit tests. 2021-06-03 09:02:55 +02:00
Antoine Nguyen 8aa155b6a6 Fixed unit test. 2021-05-31 21:35:49 +02:00
Antoine Nguyen f6915deccc Merge branch 'master' into refacto/vuejs_interface 2020-11-13 14:20:46 +01:00
Antoine Nguyen b9720c1837 Fixed unit tests. 2020-11-10 16:07:34 +01:00
Antoine Nguyen e4f5a25e64 Added missing test config. 2020-11-09 21:56:48 +01:00
02efd7f0e3 POC replace travis by Github Actions (#2066)
* POC replace travis by Github Actions

* add libldap2-dev

* add libsasl2-dev libssl-dev

* Delete .travis.yml

* Add specific configuration for PostgreSQL

* Retrieve PostgreSQL or MySQL port from env var

* Print affected port for the docker service

* Add Database type and dburl

* Fix dbtype

* Use environment variable to define the port in use for tests.

* Configured password for postgres connection.

* Added redis service.

* Enabled OpenLDAP service.

* Use a container for OpenLDAP too.

* Removed wrong option.

* Fixed volume syntax.

* Try using the option directly.

* Try using an absolute path.

* Fixed wrong syntax.

* Try different format for env variable.

* Try a different way to load data.

* Added missing method call.

* Fix envar

* Try to wait a bit before starting tests.

* Display openldap service logs.

* Fixed ldif scripts path.

* Try to use a custom docker image.

* Try to provide credentials.

* Try with github token.

* use main reference

* Changed LDAP Admin password.

* Added debug.

* Added more debug

* Removed debug.

* dd test for MySQL

* Fix name

* Test is independant

* Link build

* add envar DB for MySQL

* remove depends

* fix fast failed

* fix mysql user

* Use 127.0.0.1 to force for IPv4

* For parameters for MySQL

* Database name test_modoboa

* change mysql user to launch test

* Move to the last mysql version

lose connection on 5.7

* TEst some timout parameters

* remove bad parameters

* Add CONN_MAX_AGE parameters

* Add docker logs

* Try to reset db connections before we spawn processes.

* POC replace travis by Github Actions

* add libldap2-dev

* add libsasl2-dev libssl-dev

* Delete .travis.yml

* Add specific configuration for PostgreSQL

* Retrieve PostgreSQL or MySQL port from env var

* Print affected port for the docker service

* Add Database type and dburl

* Fix dbtype

* Use environment variable to define the port in use for tests.

* Configured password for postgres connection.

* Added redis service.

* Enabled OpenLDAP service.

* Use a container for OpenLDAP too.

* Removed wrong option.

* Fixed volume syntax.

* Try using the option directly.

* Try using an absolute path.

* Fixed wrong syntax.

* Try different format for env variable.

* Try a different way to load data.

* Added missing method call.

* Fix envar

* Try to wait a bit before starting tests.

* Display openldap service logs.

* Fixed ldif scripts path.

* Try to use a custom docker image.

* Try to provide credentials.

* Try with github token.

* use main reference

* Changed LDAP Admin password.

* Added debug.

* Added more debug

* Removed debug.

* dd test for MySQL

* Fix name

* Test is independant

* Link build

* add envar DB for MySQL

* remove depends

* fix fast failed

* fix mysql user

* Use 127.0.0.1 to force for IPv4

* For parameters for MySQL

* Database name test_modoboa

* change mysql user to launch test

* Move to the last mysql version

lose connection on 5.7

* TEst some timout parameters

* remove bad parameters

* Add CONN_MAX_AGE parameters

* Add docker logs

* Try to reset db connections before we spawn processes.

* Add relase on pypi (test server first)

* Fix setuptools scm to fix upload on Pypi test

* Retrieve all repos when publish on pypi

* if file exists, skip it

* Deploy only on master

* Added python 3.5 in matrix.

* Removed comments.

* Add translation and codecov

* Missing argument for upload in production

* fix bad indentation

* move codecov

* Codecov only in one build

* fix command

* Try to run codecov after PG tests.

* Fixed expressions syntax.

* Fixed path issue.

* Fixed path issue.

* Try workflow_run statement.

* Removed useless triggers.

* Test trigger on one workflow

* Another test

* Exclude master and main branch

* Regroup all steps in one workflow.

* Fixed typo

* Fixed bad syntax

* Added missing requirement.

* Push on Pypi Test only on master branch

Co-authored-by: Antoine Nguyen <tonio@ngyn.org>
2020-11-09 20:44:48 +01:00
Antoine Nguyen 00a112dbcb Merge branch 'master' into refacto/vuejs_interface 2020-10-21 16:43:38 +02:00
Michael CramerandGitHub 68dad785d6 Polish and Fixing issues when using "docker-compose up" (#2039)
* add missing dependencies to be able to use docker

without these dependencies, the `docker-compose up` command is failing
- `rrdtool-dev` and `librrd` when building `rrdtool-0.1.15.tar.gz`
- `make` and `file` when building `gevent-1.5.0.tar.gz`

* disable secure cookies for being able to login when docker is used with runserver (there is no ssl)

* run develop command to avoid a hard failure after login when using the docker image (version check is performed but pkg_resources is not able to find modoboa distribution)

* polish multi stage docker build (adding missing dependencies for pip install and when running the application); use a virtual environment which is shared between the stages by using a base image and others will extend this
2020-10-21 15:44:08 +02:00
Antoine NguyenandGitHub a40d46db94 Feature/tfa (#2037)
* WIP: two-factor authentication.

* Added support for 2FA using TOTP devices.

see #1760 #1672 #1455

* Added documentation.

* Updated documentation.

* Added missing qrcode requirement.

* Fixed unit tests.
2020-10-21 10:42:56 +02:00
Antoine Nguyen 8898eda7c4 Merge branch 'master' into refacto/vuejs_interface 2020-10-07 10:14:27 +02:00
Antoine NguyenandGitHub 3df446f657 Moving back the stats module to the core. (#2011)
* Moving back the stats module to the core.

* Added system packages to build RRDtool.

* Fixed unit tests.

* Improved coverage.
2020-09-17 16:02:39 +02:00
Antoine Nguyen 57d68390c5 Added greenlet support for coverage. 2020-06-17 12:03:12 +02:00
Antoine Nguyen 12399a5fad Trying to fix coverage report. 2020-06-15 18:57:21 +02:00