Skip to content

Instantly share code, notes, and snippets.

@martincalvert
Created November 28, 2017 04:59
Show Gist options
  • Save martincalvert/349cd940c8e88a20da96936ebeaa6dc7 to your computer and use it in GitHub Desktop.
Save martincalvert/349cd940c8e88a20da96936ebeaa6dc7 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.app.name }}-nginx-config
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app: matterhorn-{{ .Values.app.name }}
tier: nginx
data:
nginx.conf: |-
access_log /dev/stdout;
error_log /dev/stderr;
upstream mh_{{ .Values.app.name }}_unicorn {
server 127.0.0.1:3000 fail_timeout=0;
}
server {
listen 80 default;
root /srv/public;
}
env: integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment