Discourse: If S3 is enabled, is it recommended to configure in the yml or the admin panel?

We recommend the YML file if you’re self-hosting, Configure an S3 compatible object storage provider for uploads

If you’re using discourse.org hosting we handle upload storage, so you don’t have access to these settings.