Add multilined sniped to the Caddy file with an enviroment env (from docker compose)

So the final working best practice solution is:

EDIT: (I commented for this example irrelevant stuff out, but left it in to demonstrate the greater look of the docker-compos.yml file)

33     environment:
34 #      - TZ=Pacific/Auckland
35 #      SERVER_NAME: wiki.village
36 #      CADDY_GLOBAL_OPTIONS: local_certs
37       CADDY_SERVER_EXTRA_DIRECTIVES: |
38         @forbidden {
39               path /data/* /conf/* /bin/* /inc/* /install.php
40         }
41         error @forbidden 403
Note the SOME_VAR: space | (pipe) newline
  Indent once, some instructions
  more instructions
  and even more instructions, syntax
NEXT_VAR:
1 Like