Jika Anda ingin menggunakan nginx.conf kustom di Google Kubernetes Engine, siapkan nginx.conf tersebut dengan
memperluas
sample 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-08-18 UTC."],[[["\u003cp\u003eUsing a custom nginx configuration with the \u003ccode\u003e-n\u003c/code\u003e flag is generally not recommended as it can disrupt the intended functionality of ESP.\u003c/p\u003e\n"],["\u003cp\u003eThe preferred method to customize the nginx configuration involves deploying an ESP container, copying the generated config, and modifying the copy, repeating this process for new ESP versions or flag changes.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize a custom \u003ccode\u003enginx.conf\u003c/code\u003e on Google Kubernetes Engine, one should extend the provided sample configuration and include specific Cloud Endpoints configurations in it, such as including \u003ccode\u003e/etc/nginx/mime.types\u003c/code\u003e and utilizing the endpoints feature with relevant fields.\u003c/p\u003e\n"],["\u003cp\u003eAfter creating a custom \u003ccode\u003enginx.conf\u003c/code\u003e, you can deploy it to Kubernetes by creating a ConfigMap and then updating your Kubernetes configuration to reference the custom nginx configuration.\u003c/p\u003e\n"]]],[],null,[]]