Cloud Endpoints에 필요한 구성이 포함된 nginx.conf 파일로 시작합니다. 샘플 nginx.conf로 시작하거나, 이미 ESP를 배포한 경우에는 SSH를 통해 ESP 컨테이너에 연결한 후 /etc/nginx/endpoints/ 디렉터리에서 nginx.conf 파일을 복사할 수 있습니다.
애플리케이션에 필요한 CORS 옵션을 nginx.conf에 추가합니다. NGINX의 CORS 예시를 시작점으로 사용할 수 있습니다.
커스텀 nginx.conf 파일 경로와 함께 --nginx_config 옵션을 사용하여 ESP를 시작합니다.
[[["이해하기 쉬움","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)"],[[["You can configure the Extensible Service Proxy (ESP) to support CORS, as described in the documentation for adding CORS support to ESP."],["If ESP options don't meet your application's CORS needs, you can customize CORS by adding options directly to ESP's `nginx.conf` configuration file."],["To add custom CORS options, begin with a `nginx.conf` file required by Cloud Endpoints, such as the sample one, or by retrieving it from a deployed ESP container."],["After adding your custom CORS settings to `nginx.conf`, start ESP using the `--nginx_config` option, pointing to your modified configuration file."]]],[]]