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