我已经在GCP上激活了HTTPS负载均衡器,并带有SSL证书。 在前面我已经指定HTTPS / 443作为监听协议和HTTP与后端通信。 HTTPS很好地工作,但负载均衡器也接受http / 80连接导致404页面。 有什么办法直接从负载均衡器转发http到https? 谢谢
这是我的Packer文件。 { "variables": { "account_json": "{{env `packer_account_json`}}" }, "builders": [ { "type": "googlecompute", "account_file": "{{user `account_json`}}", "project_id": "united-course-124523", "source_image": "debian-8-jessie-v20160711", "zone": "us-central1-a", "instance_name": "hub-{{timestamp}}", "image_name": "hub-{{uuid}}", "image_description": "Elasticsearch 2.3.4." } ], "provisioners": [ { "type": "shell", "inline": [ "sleep 20", "echo \"slept for 20 seconds.\"" ] }, { "type": "file", "source": "../scripts/install-elastic.sh", "destination": "../scripts/install-elastic.sh" }, […]
我想制作一个有商店和用户的应用程序。 每个用户都属于某个商店并上传图片。 商店的需求是看到一个本地目录,它自动同步用户上传的文件,就像Dropbox / Google驱动软件一样。 我发现这个工具: 云文件资源pipe理器 。 但是有两个问题: 作为最低要求的Windows 8.1对商店来说太高了。 我不知道如何可能的商店将只能看到他们的目录,而不是其他商店的目录。 是不是可以将用户上传到Firebase的文件移动/复制到商店的Google驱动器/ Dropbox帐户?
我一直在使用Packer v0.10.1来构build一个映像,并试图通过Hashicorp的Atlas工具运行时遇到此访问安全问题。 Packer v0.10.1 [1;32mgooglecompute output will be in this color.[0m [1;32m==> googlecompute: Checking image does not exist…[0m [1;32m==> googlecompute: Creating temporary SSH key for instance…[0m [1;32m==> googlecompute: Creating instance…[0m [0;32m googlecompute: Loading zone: us-central1-a[0m [1;31m==> googlecompute: Error creating instance: Get https://www.googleapis.com/compute/v1/projects/united-course-124523/zones/us-central1-a?alt=json: oauth2/google: can't get a token from the metadata service; not running on GCE[0m […]
我正在使用Google Deployment Manager,当我使用实例组pipe理器创build新的自动调节器时,出现此错误。 Unexpected response from resource of type compute.v1.autoscaler: 400 { "code": 400, "errors": [ { "domain": "global", "message": "Invalid value for field 'resource.target': 'https://www.googleapis.com/compute/v1/projects/XXX/zones/ZZZ/instanceGroupManagers/instance-group-manager'. Target already referenced by Autoscaler.", "reason": "invalid" } ], "message": "Invalid value for field 'resource.target': 'https://www.googleapis.com/compute/v1/projects/XXX/zones/ZZZ/instanceGroupManagers/instance-group-manager'. Target already referenced by Autoscaler.", "requestPath": "https://www.googleapis.com/compute/v1/projects/XXX/zones/ZZZ/autoscalers", "statusMessage": "Bad Request" } 我不明白为什么,因为实例组pipe理器只在一个地方引用,在autoscalerconfiguration。 这是configuration: […]
您好我已经创build了一个脚本,应该使一组图像文件在谷歌存储桶公众可读。 后来另一个脚本将使他们再次私密。 脚本运行在GCE(Google计算引擎)上。 它开始运行正常,并公开设置文件,但在它完成所有文件之前遇到以下致命exception Uncaught exception 'DomainException' with message 'Could not load the default credentials. in (…)/vendor/google/auth/src/ApplicationDefaultCredentials.php:148 Stack trace: #0 (…)/vendor/google/apiclient/src/Google/Client.php(1053): Google\Auth\ApplicationDefaultCredentials::getCredentials('https://www.goo…') #1 (…)/vendor/google/apiclient/src/Google/Client.php(354): Google_Client->createApplicationDefaultCredentials() #2 (…)/vendor/google/apiclient/src/Google/Client.php(777): Google_Client->authorize() #3 (…)/vendor/google/apiclient/src/Google/Service/Resource.php(232): Google_Client->execute(Object(GuzzleHttp\Psr7\Request), 'Google_Service_…') #4 (…)/vendor/google/auth/src/ApplicationDefaultCredentials.php on line 148 我正在使用的代码如下。 require "../vendor/autoload.php"; $client = new Google_Client(); $client->useApplicationDefaultCredentials(); $client->addScope(Google_Service_Storage::DEVSTORAGE_READ_WRITE); $storage = new Google_Service_Storage($client); $acl = new Google_Service_Storage_ObjectAccessControl(); $acl->setEntity('allUsers'); […]
我希望给开发团队一个访问权限,所以我创build了“tempuser”,然后cmd来授予ssh连接 tempuser@instance-1:~$ gcloud compute ssh tempuser@instance-1 它运行良好,但它也添加了这个“tempuser”谷歌sudoers组给它所有文件夹的完整访问权限如下 uid=1003(tempuser) gid=1004(tempuser) groups=1004(tempuser),4(adm),30(dip),44(video),46(plugdev),1000(google-sudoers) 在我试图通过cmd手动从google-sudoers中删除tempuser之后, deluser tempuser google-sudoers 它做了一个短期的影响,然后它会自动恢复'tempuser'成为一个google-sudoers的成员再次从谷歌我想一些脚本。 由于这违反了安全规则,任何人都可以告诉我如何从谷歌sudoers中删除用户“tempuser” 非常感谢你。
我即将评估gcsfuse以便在具有数据库守护程序的系统中使用。 守护进程是奇特的。 它计算可用的磁盘空间,而不是叠加地; 也就是说,它确保它使用所有可用空间, 除了磁盘的保留部分。 GSE的文档表明,存储是无限大的,我认为这意味着存储桶的“磁盘”大小将显示为一些荒谬的或意想不到的数字。 究竟发生了什么? 有没有办法指示gcsfuse二进制文件设置最大的桶大小?
我正在尝试为Google云端平台上的nodejs应用设置一个testing环境 我无法find一种方法来镜像我的存储库的#dev分支使用“自动镜像从GitHub或Bitbucket”选项似乎自动使用#master,我不知道如何改变这种行为。 我知道有可能手动推送本地分支到谷歌云回购,但在我的设置这将是不切实际的。 我想gcloud app deploy自动部署 bitbucket.org:myproject/myrepo.git#dev 干杯
我在Google云计算引擎上有两个项目,有两个不同的networking和子网。 项目A – networkingA – 子networkingA项目B – networkingB – 子networkingB 如何将子networkingA连接到子networkingB? 我想我的服务器可以达到对方。 因此,子网A中的服务器可以与B中的服务器通信,反之亦然。 谢谢