@@ -127,7 +127,7 @@ var (
127
127
//go:embed templates/custom_nginx.template
128
128
nginxConfigEmbed string
129
129
// Hardcoded configs which match nginxConfigEmbed
130
- nginxEmailTemplateDir = "/home /kong/templates/email"
130
+ nginxEmailTemplateDir = "/etc /kong/templates/email"
131
131
nginxTemplateServerPort = 8088
132
132
)
133
133
400
400
Image : utils .Config .Api .KongImage ,
401
401
Env : []string {
402
402
"KONG_DATABASE=off" ,
403
- "KONG_DECLARATIVE_CONFIG=/home /kong/kong.yml" ,
403
+ "KONG_DECLARATIVE_CONFIG=/etc /kong/kong.yml" ,
404
404
"KONG_DNS_ORDER=LAST,A,CNAME" , // https://github.com/supabase/cli/issues/14
405
405
"KONG_PLUGINS=request-transformer,cors" ,
406
406
fmt .Sprintf ("KONG_PORT_MAPS=%d:8000" , utils .Config .Api .Port ),
@@ -411,14 +411,14 @@ EOF
411
411
"KONG_NGINX_PROXY_PROXY_BUFFERS=64 160k" ,
412
412
"KONG_NGINX_WORKER_PROCESSES=1" ,
413
413
// Use modern TLS certificate
414
- "KONG_SSL_CERT=/home /kong/localhost.crt" ,
415
- "KONG_SSL_CERT_KEY=/home /kong/localhost.key" ,
414
+ "KONG_SSL_CERT=/etc /kong/localhost.crt" ,
415
+ "KONG_SSL_CERT_KEY=/etc /kong/localhost.key" ,
416
416
},
417
- Entrypoint : []string {"sh" , "-c" , `cat <<'EOF' > /home /kong/kong.yml && \
418
- cat <<'EOF' > /home /kong/custom_nginx.template && \
419
- cat <<'EOF' > /home /kong/localhost.crt && \
420
- cat <<'EOF' > /home /kong/localhost.key && \
421
- ./docker-entrypoint.sh kong docker-start --nginx-conf /home /kong/custom_nginx.template
417
+ Entrypoint : []string {"sh" , "-c" , `cat <<'EOF' > /etc /kong/kong.yml && \
418
+ cat <<'EOF' > /etc /kong/custom_nginx.template && \
419
+ cat <<'EOF' > /etc /kong/localhost.crt && \
420
+ cat <<'EOF' > /etc /kong/localhost.key && \
421
+ ./docker-entrypoint.sh kong docker-start --nginx-conf /etc /kong/custom_nginx.template
422
422
` + kongConfigBuf .String () + `
423
423
EOF
424
424
` + nginxConfigEmbed + `
0 commit comments