You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/core/admin/mailu
bors[bot] 179c624116
Merge #2631
2631: Restful api finishing touches r=mergify[bot] a=Diman0

## What type of PR?

enhancement

## What does this PR do?
Some finishing touches for the restful api.

- Make the API configurable via the setup utility.  
  - Configured exactly the same as the ADMIN and WEBMAIL. 
- We have a single config (API) that configures whether it is exposed (via front). Just like ADMIN. The API is always reachable by directly connecting to the admin container.
- API_TOKEN does not enable/disable the API anymore. When it is not configured, an error is returned (via the internet browser) that the API_TOKEN must be configured in mailu.env.
- Fix some small bugs in the setup utility ( selecting none in the dropdown boxes, now correctly changes the config)
- Update Flask-RestX to 1.0.5. This resolves the deprecation warnings introduced by Flask-RestX.

### Related issue(s)

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Dimitri Huisman <diman@huisman.xyz>
2 years ago
..
api Make API configurable via the setup utility 2 years ago
internal Enable HAPROXY protocol in between front and imap 2 years ago
sso Autofocus the login form on /sso/login 2 years ago
translations Fix a bunch of typos 2 years ago
ui Disable "Fetched accounts" button in user list. 2 years ago
__init__.py Make API configurable via the setup utility 2 years ago
configuration.py Set default for FETCHMAIL_ENABLED 2 years ago
debug.py update werkzeug to 1.x 3 years ago
dkim.py remove newline 2 years ago
limiter.py Fix 2125 3 years ago
manage.py set the umask 2 years ago
models.py Fix smtplib.LMTP wrong argument name: ip -> host 2 years ago
schemas.py Really fix creation of deep structures using import in update mode 2 years ago
utils.py Change the logic 2 years ago