Elastic ILM Configuration

Actually you are right and you can set this using a file as you already discovered the setting in your other post.

This answer in your other post is how the file needs to look like.