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
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
..
admin Remove webmail cookies on logout. 2 years ago
base Upgrade to alpine 3.17.1 2 years ago
dovecot Merge branch 'master' of https://github.com/Mailu/Mailu into reduce-logging 2 years ago
nginx Get the value from the correct dict (args) 2 years ago
none Make setup use the base image 2 years ago
oletools Make olefy.py listen on all interfaces 2 years ago
postfix Skip listen to v6 when SUBNET6 is not set 2 years ago
rspamd Doh 2 years ago