【发布时间】:2019-03-19 17:44:15
【问题描述】:
我想从 GCP App Engine 托管 PrivateBin,但我不知道如何配置 app.yaml 文件。如果有人以前这样做过,我将不胜感激。 :)
我尝试了两种选择,但都没有奏效:
runtime: php55
api_version: 1
threadsafe: yes
handlers:
- url: /.*
script: index.php
&
runtime: php55
api_version: 1
handlers:
- url: /(.*.(ico$|jpg$|png$|gif$|htm$|html$|css$|js$|xml$))
static_files: \1
upload: (.*.(ico$|jpg$|png$|gif$|htm$|html$|css$|js$|xml$))
application_readable: true
- url: /(.+)
script: \1
- url: /
script: index.php
【问题讨论】:
-
看来您可以将其与容器一起部署到 GCP 中。使用 PrivateBin docker 容器镜像,效果很好!
标签: google-app-engine google-cloud-platform app.yaml