![使用 app.yaml、cron.yaml 等设置服务器,但无法识别目录](https://linux22.com/image/769411/%E4%BD%BF%E7%94%A8%20app.yaml%E3%80%81cron.yaml%20%E7%AD%89%E8%AE%BE%E7%BD%AE%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%8C%E4%BD%86%E6%97%A0%E6%B3%95%E8%AF%86%E5%88%AB%E7%9B%AE%E5%BD%95.png)
正如标题所述,服务器已配置为识别子目录,但不知何故,当我加载网页时,它们无法被识别。有什么方法可以调试正在发生的事情吗?
threadsafe: true
api_version: 1
handlers:
- url: /(.*\.html)
static_files: html/\1
upload: html/(.*\.html)
- url: /robots.txt
static_files: html/robot.txt
upload: html/robots.txt
- url: /pako
static_dir: third_party/pako
- url: /images
static_dir: images
- url: /js
static_dir: js
- url: /css
static_dir: css
- url: /compute/.*
script: apprtc.app
login: admin
- url: /probe.*
script: probers.app
secure: always
- url: /.*
script: apprtc.app
secure: always
libraries:
- name: jinja2
version: latest
- name: ssl
version: latest
- name: pycrypto
version: latest
env_variables:
BYPASS_JOIN_CONFIRMATION: false
# Only change these while developing, do not commit to source!
# Use appcfg.py --env_variable=ICE_SERVER_API_KEY:KEY \
# in order to replace variables when deploying.
ICE_SERVER_API_KEY: ""
# Comma-separated list of ICE urls to return when no ice server
# is specified.
ICE_SERVER_URLS: ""
# A message that is always displayed on the app page.
# This is useful for cases like indicating to the user that this
# is a demo deployment of the app.
HEADER_MESSAGE: ""
以下是服务器的响应
INFO 2021-08-12 05:20:35,496 admin_server.py:150] Starting admin server at: http://localhost:8000
INFO 2021-08-12 05:20:37,540 instance.py:294] Instance PID: 16382
INFO 2021-08-12 05:20:43,429 apprtc.py:95] Applying media constraints: {'video': {'optional': [{'minWidth': '1280'}, {'minHeight': '720'}], 'mandatory': {}}, 'audio': True}
WARNING 2021-08-12 05:20:43,436 apprtc.py:139] Invalid or no value returned from memcache, using fallback: null
INFO 2021-08-12 05:20:43,452 module.py:861] default: "GET / HTTP/1.1" 200 8965
INFO 2021-08-12 05:20:43,520 module.py:861] default: "GET /css/main.css HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,575 module.py:861] default: "GET /js/util.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,577 module.py:861] default: "GET /js/adapter.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,629 module.py:861] default: "GET /js/constants.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,631 module.py:861] default: "GET /js/infobox.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,635 module.py:861] default: "GET /js/analytics.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,639 module.py:861] default: "GET /js/sdputils.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,643 module.py:861] default: "GET /js/call.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,646 module.py:861] default: "GET /js/appcontroller.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,698 module.py:861] default: "GET /css/main.css HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,709 module.py:861] default: "GET /js/peerconnectionclient.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,699 module.py:861] default: "GET /js/adapter.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,710 module.py:861] default: "GET /js/roomselection.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,711 module.py:861] default: "GET /js/util.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,712 module.py:861] default: "GET /js/signalingchannel.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,751 module.py:861] default: "GET /js/stats.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,764 module.py:861] default: "GET /js/storage.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,768 module.py:861] default: "GET /js/sdputils.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,773 module.py:861] default: "GET /js/constants.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,776 module.py:861] default: "GET /js/infobox.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,777 module.py:861] default: "GET /js/analytics.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,806 module.py:861] default: "GET /js/appcontroller.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,825 module.py:861] default: "GET /js/call.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,836 module.py:861] default: "GET /js/peerconnectionclient.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,840 module.py:861] default: "GET /js/roomselection.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,841 module.py:861] default: "GET /js/stats.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,842 module.py:861] default: "GET /js/signalingchannel.js HTTP/1.1" 304 -
INFO 2021-08-12 05:20:43,858 module.py:861] default: "GET /js/storage.js HTTP/1.1" 304 -
我正在配置的服务器可以找到这里。我想做的是创建一个服务器(已经写好了 - 只是没有配置),它接收我的谷歌眼镜生成的视频流,并允许人们加入一个可以看到我的视频流的房间。然后我的谷歌眼镜可以在我的显示器上看到他们的网络摄像头信息。我设置服务器的平台是 Debian 10。工具是适用于 Python、Node.js 和 Grunt 的 Google App Engine SDK。网站的一部分也是用 Go 编写的。
服务器通过运行启动
./collidermain -tls=true -port=8089 -room-server=http://example.com
还有跑步
python ../google-cloud-sdk/bin/dev_appserver.py --host example.com ./out/app_engine
我寻求帮助的原因是,上面显示的 app.yaml 文件中指定的目录相对于使用的索引文件的位置正确。所以我不知道为什么它无法获取它们。该网站是本网站
如果您需要我进一步详细说明,请告诉我,我会尽力!
因此,看起来设计用于运行该服务的 Web 服务器并不适合在 https 上运行。如果没有 https 连接,服务器本身将无法完全运行。
答案1
我设置的软件仅用于在本地主机上运行的开发环境。为了设置生产环境,我必须使用 Google Web 服务。这就是网站无法运行的原因。
对于将来遇到此问题的人:
- 您需要 SSL 才能访问软件中的房间
- 除非你使用 Google Web 服务,否则不支持 SSL
- 您可以配置 Web 服务以使用您的域,这样您就可以选择设置子域或直接为应用程序使用主域。