This repository holds the configuration for a custom Nginx image.
432
This repository holds the configuration for a Docker image based on
nginx, which serves an application either solely over SSL including a rewrite
of all served URLs to https://... or just the way it is.
The build process is comprised of few steps.
Copy app.conf to /etc/nginx/conf.d/app.conf of the image to
set some default settings and allow for the change via docker-entrypoint.sh
which is copied during the next step.
Copy docker-entrypoint.sh to the root directory of
the image to enable the setup process of the connection to the application on
container startup
During container start there are several optional environment variables available to connect to an existing app in the network and serve it at a specified address. The following list mentions the default values if not explicitly specified differently during container start up.
SSL = 'false': Indicate if the application shall be served solely over SSL or
not. Mixed content will possibly not work correctly if set to 'false'.
SERVER_NAME = 'localhost': The full URL over which the application will be
served including subfolders.
UPSTREAM_HANDLE ='0.0.0.0': The application's ip or address in the network.
UPSTREAM_PORT = '80': The application's port at it's address in the network.
Content type
Image
Digest
Size
42.7 MB
Last updated
over 7 years ago
docker pull bludoc/nginx