Simple webserver for Google Cloud Run to server files from Google Cloud Storage
to publish do something like this:
gcloud builds submit --tag gcr.io/project1/gclwebgcs
gcloud beta run deploy --image gcr.io/project1/gclwebgcs --platform managed --set-env-vars=GCS=GCSbucketName serviceNameIt's also some ENV values additional to GSC:
CORSin case of valuetruewill addAccess-Control-Allow-Origin=*headerINDEXspecifies main index of site (/ page), default isindex.html404specifies redirect to page in case of unexistent file, default is/404.htmlREDIRECTis just total unconditional redirect to other domain (!), for example in case of domain change. Value ofREDIRECTacts as prefix and URI is added. For example if actual domain is example.com and value is "https://example2.com" visitor ofhttps://example.com/hello/worldwill be redirected tohttps://example2.com/hello/world(in case if you don't need it just put something likehttps://example2.com/#toREDIRECTand rest part will be almost ignored by browser :) )