mailu/docs
bors[bot] 4a24bd9e24
Merge
2638: further finishing touches for restful api r=mergify[bot] a=Diman0

- Fix setup utility setting correct value to env var API. It now also sets `false` when the API is disabled in the setup utility.
- Fix IF statement for enabling API in nginx.conf. Setting a different value than `API=true` in mailu.env now disabled the API endpoint in nginx.
- Use safer command for regenerating example API token. It uses crypto.getRandomValues() (as suggested by nextgens) which should be more random than the previously used method. 

## What type of PR?

bug-fix

## What does this PR do?

### 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.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [ ] 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>
..
_templates Restore VERSION_TAG template
assets removing unneeded image
compose Fix a bunch of typos
contributors Remove Swarm everywhere.
kubernetes/mailu simplify
.env Add deploy settings for server
Dockerfile Process code review remarks
antispam.rst Mention you must restart rspamd for the changes to take effect.
api.rst Make API configurable via the setup utility
arm_images.rst Fix a bunch of typos
cli.rst Introduction of the Mailu RESTful API.
conf.py Set language to English for sphinx in conf.py.
configuration.rst Merge
database.rst Update database.rst
demo.rst Update demo docs with new capabilities
dns.rst Fix a bunch of typos
docker-compose.yml Make docker-compose.yml for setup and docs development friendly
faq.rst Still prefer docker-ipv6nat
features.rst remove service status "feature"
general.rst Update general.rst
index.rst Introduction of the Mailu RESTful API.
maintain.rst Documentation:
nginx.conf Build the documentation as a Docker image
releases.rst Fix a bunch of typos
requirements.txt Introduction of the Mailu RESTful API.
reverse.rst Use server-side password generator for generating token.
setup.rst Merge branch 'master' into feat-switch-buildx
webadministration.rst Set default for FETCHMAIL_ENABLED