How can Flarum be set up as a subdomain? Webserver is nginx.
Currently, there are browser console errors when loading Flarum as a subdomain:
Loading failed for the <script> with source “http://flarum.dev/assets/forum-1c9fba11.js”.
Loading failed for the <script> with source “http://flarum.dev/assets/forum-en-bfdb02d7.js”.
TypeError: flarum.core is undefined[Learn More]
It's trying to load assets in Flarum.dev instead of audio.flarum.dev. this means that the URL in the config.php file is wrong. Make sure that the URL in config.php matches the URL that Flarum is accessible from.
As suggested, I have edited config.php > url to properly reflect the subdomain, and Flarum now loads properly.