In the [Scripting and security](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-security.html#allowed-script-types-setting) document, the script setting should be started with `script.`, not with the `scripts.`