Nginx config customization on App Engine Flex custom runtime

1,881 views
Skip to first unread message

Dong Ngo Hung

unread,
May 10, 2021, 10:23:52 AM5/10/21
to Google App Engine
Hello everyone,

Is it possible to customize the nginx.conf for app engine flex custom runtime? I see that PHP runtime does support customize it through nginx-app.conf but couldn't find one for the custom runtime.

Thank you.

wokmou

unread,
May 11, 2021, 12:32:03 PM5/11/21
to Google App Engine
Appengine flex by default also includes an nginx.conf file, which contains the basic nginx configuration information, as well was the index.html file, which serves as the root page for the nginx web server. This [1] will show you how to build Custom Runtimes in the App Engine Flexible Environment and Customize NGINX[2].

Dong Ngo Hung

unread,
May 26, 2021, 9:42:11 AM5/26/21
to Google App Engine
Hi wokmou,

As of [1], we would like to customize the nginx configuration in the VM instance, not inside our container as our container doesn't include nginx. We are looking for something like [2] but for custom runtime instead of PHP.

Thank you.

Anton Lage Magri

unread,
May 28, 2021, 10:42:02 AM5/28/21
to Google App Engine
Hello,
Do you want to customize the nginx of the instance or the nginx proxy container that will manage your app? When you create an App engine it creates different dockers that manages all the needs of your App [1]. 

[1]:

goya

unread,
May 31, 2021, 8:53:37 AM5/31/21
to Google App Engine
If you want to use a custom runtime and customize Nginx, maybe your use case is more suitable for Cloud Run than App Engine. In Cloud Run you have more flexibility to configure runtime than in App Engine and can use any coding language you wish. You can check this community tutorial [1] for the steps required for this. 


On Wednesday, May 26, 2021 at 3:42:11 PM UTC+2 d...@ipsip.eu wrote:
Reply all
Reply to author
Forward
0 new messages