Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Let's examine the Endpoint DNS Alias/hostname for the container service: spinup-001371-simplenginxcontainer.svc.spinup.yale.edu - substitute yours and follow along.  Also, this Endpoint hostname can be used for internal use at Yale, or can be used as a backend for a load balancer.

Try to connect to it with curl on port 80:

...

...

container configuration

The nginxproxy container will listen on port 8443 by default - add an environment variable LISTEN_PORT with the value 443 in the container definition.  This will influence the nginxproxy container to listen on port 443 as well as its default 8443.

...

We configured the following Environment Variables:

...

Let's examine the Endpoint DNS Alias/hostname for the container service: spinup-001368-testwebappwithnginxsidecar.svc.spinup.yale.edu - substitute yours and follow along.  Also, this Endpoint hostname can be used for internal use at Yale, or can be used as a backend for a load balancer.

Notice, for the nginxproxy container service, we've also added an environment variable CERT_SUBJECT with the value "/CN=awesomewebapp-20200911."  This will modify the CN of the self-signed certificate.  You can see this output in curl:

...