/etc/mdadm.conf is the main configuration file for mdadm.
NOTE: On some systems, the mdadm config file is located instead at /etc/mdadm/mdadm.conf, so adjust accordingly any commands that are run.