Google App Engine の Django Rest Framework バックエンドを使用して、Angular フロント エンドをデプロイしました。フロントエンドからバックエンドにリクエストを送信すると、エラー 502 Bad Gateway が表示されます。問題を特定するための助けをいただければ幸いです。いくつかのオンラインの推奨事項を試してみましたが、うまくいきません。これは私のフロントエンド app.yaml です
runtime: nodejs12
handlers:
- url: /
static_files: smis/index.html
upload: smis/index.html
secure: always
- url: /
static_dir: smis
secure: always
これは私のバックエンド app.yaml ファイルです
runtime: python38
service: backend
handlers:
- url: /static
static_dir: /static/
secure: always
- url: /.*
script: auto
secure: always
これは私のdispatch.yamlファイルです
#routing rules
dispatch:
#api
- url: "*/api/*"
service: backend