I had a similar issue :
- My website is :
mywebsite.mycompany.com
- My sitemap and sitemap index files are generated and uploaded every night on
cdn.mycompany.com/sitemap
I couldn't add my sitemap index file cdn.mycompany.com/sitemap/sitemap.xml
in the Google Search Console tool.
So I added this in my website Nginx configuration :
# Nginx configuration for mywebsite.mycompany.com
location /sitemap.xml {
set $backend https://cdn.mycompany.com/sitemap/sitemap.xml;
proxy_pass $backend;
proxy_ssl_server_name on;
}
To get my sitemap index file accessible on mywebsite.mycompany.com/sitemap.xml
. I didn't redirect the sitemap files (because I want to keep it simple and don't use rewrite rules if I can), so only my sitemap index is accessible on my website domain. My sitemap index file looks like this :
<!-- mywebsite.mycompany.com/sitemap.xml -->
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://cdn.mycompany.com/sitemap/sitemap-item-1.xml</loc>
<lastmod>2022-02-24</lastmod>
</sitemap>
<!-- ... -->
</sitemapindex>
It seems to work in the Search Console : my URLs were discovered. But I don't see the sitemap files in the UI, probably because of the different domain.
I sent a comment to Google with a screenshot, I'll post an update if I get a response.

TLDR: If you use a sitemap index file, it seems that you don't need to add your sitemap files in your website domain, only the sitemap index file.
/my-site/sitemap.xml
? External sitemaps are supposedly supported, but I've never seen anybody actually get them to work.foo.mydomain.com
and my sitemap is onbar.mydomain.com
). I didn't find any solutions for now.