As said in the guide they must go under the env: section, together with other DISCOURSE_ like settings:
env:
DISCOURSE_