Mattermost server along with apple-app-site-association

For using auto fill password and universal links in iOS devices, we need to upload apple-app-site-association file (is a json file) to our server.
After you create the apple-app-site-association file, upload it to the root of your HTTPS web server or to the .well-known subdirectory. The file needs to be accessible via HTTPS—without any redirects—at https://<domain>/apple-app-site-association or https://<domain>/.well-known/apple-app-site-association. Next, you need to handle universal links in your app.
https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html
I uploaded that file in my root of server and tried to access the file, I was redirected to mattermost. Which is not expected. How can I solve this?

@bibekdari, currently the Mattermost server only serves static assets from the /static/ path.

I might suggest setting up Nginx as a proxy server (even on the same machine), and serving the requisite static assets before passing back upstream to the Mattermost server. Here’s a sample configuration to get you started: https://docs.mattermost.com/install/config-proxy-nginx.html.