blob: b46c7b6df13ba05f27c635039664c6cd87c308ce [file] [log] [blame]
# This app is deployed via Cloud Build as directed by cloudbuild.yaml.
# Do not deploy directly.
service: default
runtime: go119
main: ./cmd/golangorg
env_variables:
GOLANGORG_REQUIRE_DL_SECRET_KEY: true
GOLANGORG_ENFORCE_HOSTS: true
GOLANGORG_REDIS_ADDR: 10.0.0.4:6379 # instance "gophercache"
GOLANGORG_ANALYTICS: UA-11222381-2
DATASTORE_PROJECT_ID: golang-org
# For access to our Redis instance.
vpc_access_connector:
name: projects/golang-org/locations/us-central1/connectors/golang-vpc-connector
handlers:
- url: /.*
script: auto
secure: always
# We need ~200 megabytes of RAM for tip.golang.org's GOROOT (including GC overhead).
# Use F4 instance for 1GB RAM (4X the default size, 4X the default price).
# Accept 4X the default maximum concurrent requests to balance out.
instance_class: F4
automatic_scaling:
max_concurrent_requests: 40