https://bitbucket.org/tbdsrl/nginx-proxy-pass-dockerized
500K+
Basic configuration for a proxy pass using nginx. The default configuration will listen on port 8080 without any virtual hosts and proxy requests to loopback interface on port 8000
Set env variable during run to change the behaviour
sample: deployment.yml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: instal-showcase-deployment
namespace: instal-dashboard
spec:
replicas: 3
revisionHistoryLimit: 3
template:
metadata:
labels:
app: instal-showcase
spec:
containers:
- name: instal-showcase
image: gcr.io/feisty-gasket-100715/instal-showcase:latest
ports:
- name: gunicorn
containerPort: 8810
readinessProbe:
httpGet:
path: /_probe
port: gunicorn
- name: instal-showcase-nginx
image: instal/nginx-proxy-pass-dockerize:1.2
ports:
- name: nginx
containerPort: 8080
resources:
requests:
memory: "8Mi"
cpu: "10m"
readinessProbe:
httpGet:
path: /_probe
port: nginx
env:
- name: NGINX_UPSTREAM_SERVER
value: '127.0.0.1:8810'
- name: NGINX_HOSTNAME
value: instal.com
- name: NGINX_EXTRA_SERVER_NAMES
value: 'showcase.instal.com'
- name: NGINX_UPSTREAM_KEEPALIVE
value: '0'
- name: NGINX_HOST_REWRITE_ENABLED
value: '1'
- name : NGINX_HOST_REWRITE_SERVER_NAMES
value: www.instal.com
This is the list of the current processed environment variables with their defaults:
NGINX_ERROR_LOGLEVEL
infoNGINX_WORKER_PROCESSES
4NGINX_WORKER_CONNECTIONS
4096NGINX_MULTI_ACCEPT
onNGINX_UPSTREAM_SERVER
127.0.0.1:8000127.0.0.1. When used as a separated service you must provide the dns name of the application server serviceNGINX_UPSTREAM_KEEPALIVE
0NGINX_SERVER_PORT
8080NGINX_HOSTNAME
NGINX_HOST_REWRITE_ENABLED is defined. When this variable is defined nginx will configured to reply to request with the same host header . For example instal.comNGINX_EXTRA_SERVER_NAMES
showcase.instal.com instal.com localhostNGINX_CLIENT_MAX_BODY_SIZE
70MNGINX_CLIENT_BODY_TIMEOUT
60sNGINX_FASTCGI_READ_TIMEOUT
60sNGINX_PROXY_READ_TIMEOUT
60sNGINX_GZIP_TYPES
application/xml application/jsonNGINX_KEEPALIVE_TIMEOUT
3600sNGINX_KEEPALIVE_REQUESTS
10000NGINX_HOST_REWRITE_ENABLED
FalseNGINX_HOSTNAMENGINX_HOST_REWRITE_SERVER_NAMES
NGINX_HOST_REWRITE_ENABLED is definedNGINX_ACCESS_LOG_TO_STDOUT
trueNGINX_REMOVE_XFORWARDEDFOR
falsetrue|falseNGINX_INFLATE_COMPRESSED_BODY
falseinspired by: https://github.com/mikesplain/nginx-proxy-pass-docker/
Content type
Image
Digest
sha256:ed27b05e3…
Size
120.5 MB
Last updated
over 1 year ago
docker pull instal/nginx-proxy-pass-dockerize