# Copyright 2021 Google LLC## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.runtime:python27threadsafe:trueapi_version:1basic_scaling:max_instances:2skip_files:-^(.*/)?#.*#$-^(.*/)?.*~$-^(.*/)?.*\.py[co]$-^(.*/)?.*/RCS/.*$-^(.*/)?\..*$-^(.*/)?setuptools/script \(dev\).tmpl$handlers:# The endpoints handler must be mapped to /_ah/api.-url:/_ah/api/.*script:main.apilibraries:-name:pycryptoversion:2.6-name:sslversion:2.7.11env_variables:# The following values are to be replaced by information from the output of# 'gcloud endpoints services deploy swagger.json' command.ENDPOINTS_SERVICE_NAME:YOUR-PROJECT-ID.appspot.comENDPOINTS_SERVICE_VERSION:2016-08-01r0
각 항목의 의미는 다음과 같습니다.
main은 API 서버의 Python 모듈 및 변수 이름입니다.
threadsafe는 App Engine이 여러 요청을 병렬로 전송하도록 하려면 true로 설정하고, App Engine이 요청을 직렬로 전송하도록 하려면 false로 설정합니다.
선택적인 추가 설정을 사용할 수 있습니다. 자세한 내용은 app.yaml 참조에서 확인하세요. 단, 로그인 또는 관리자 상태 요구 및 보안 URL의 정보는 백엔드 API에는 적용되지 않습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-25(UTC)"],[[["Your project needs at least three files: a class file for your backend API (`/src/\u003cyour_api_class\u003e.py`), an optional API server file (`/src/\u003cyour_api_server\u003e.py`), and the `app.yaml` deployment descriptor."],["The `app.yaml` file is essential for App Engine configuration and includes settings for runtime, API version, scaling, and handling requests, which can be set to threadsafe."],["The `/src/app.yaml` file must contain a handler that maps the `/_ah/api/.*` URL pattern to your API, and this pattern should match the base path set in your API definition."],["The `app.yaml` also contains variables such as `ENDPOINTS_SERVICE_NAME` and `ENDPOINTS_SERVICE_VERSION`, which need to be updated with information obtained from the gcloud command output."]]],[]]