[英]Can you change the public URL of a file on Google Cloud Storage?
I'm storing a series of html files in a GCP bucket, and want to share a minified link for social media purposes.我在 GCP 存储桶中存储了一系列 html 文件,并想分享一个缩小的链接用于社交媒体目的。 Trouble is, the minified link contains the full-length Public URL for redirection purposes, so at the moment the storage.googleapis.com
url shows up on those social media cards.问题是,缩小的链接包含用于重定向目的的全长 Public URL,因此目前storage.googleapis.com
url 出现在这些社交媒体卡片上。
Ideally I'd like it to show the minified url, but at the very least I'd like to change the Public URL in GCP to something more human-accessible.理想情况下,我希望它显示缩小的 url,但至少我想将 GCP 中的公共 URL 更改为更易于访问的内容。
You have 2 ways to serve a website from Cloud Storage and to customize the URL.您有 2 种方法可以从 Cloud Storage 为网站提供服务并自定义 URL。
So when you're setting up you your domain you can use a CNAME record to point to redirect to google bucket因此,当您设置您的域时,您可以使用 CNAME 记录指向重定向到谷歌存储桶
this answers it pretty clearly - https://stackoverflow.com/a/18650641/6147146这很清楚地回答了它 - https://stackoverflow.com/a/18650641/6147146
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.