apiVersion: v1 kind: ConfigMap metadata: name: eventyay-nginx namespace: {{ .namespace }} data: nginx.conf: | server { listen 8080; server_name _; client_max_body_size 100m; location /static/ { alias /static/; expires 30d; add_header Cache-Control "public, immutable"; } location /media/ { alias /media/; } location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto; proxy_read_timeout 120s; } }