Jika Anda ingin menggunakan nginx.conf kustom di Google Kubernetes Engine, siapkan nginx.conf dengan memperluas contoh nginx.conf ini. Berikut adalah cuplikan konfigurasi yang diperlukan oleh Cloud Endpoints:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-25 UTC."],[[["Using the `-n` flag to provide a custom nginx configuration is generally not recommended, as it can lead to feature breakage; instead, the preferred method is to modify a copy of the automatically generated configuration."],["To customize the nginx configuration, deploy an ESP container, copy the generated `nginx.conf` from `/etc/nginx/endpoints/`, and make your changes to the copied file."],["When using a custom `nginx.conf` on Google Kubernetes Engine, you should use the provided sample configuration as a base and ensure that it contains the required settings for Cloud Endpoints."],["The nginx configuration must include specific directives like `endpoints { on; }` and after ESP version 1.7.0, the `server_config` field should be set to `/etc/nginx/server_config.pb.txt` for proper functionality."],["After creating a custom `nginx.conf`, it needs to be deployed into Kubernetes via a ConfigMap and referenced within the Kubernetes configuration file, ensuring that the ESP container's arguments point to the custom configuration location."]]],[]]