apiVersion: v1
kind: ConfigMap
metadata:
  name: nginx-conf
  namespace: flaskapp
data:
  nginx.conf: |-
    #CODE1.0:
    #add the nginx.conf configuration - this will be referenced within the deployment.yaml
    server {
        listen 80;
        server_name localhost;
        location / {
            proxy_pass http://localhost:5000/;
            proxy_set_header Host "localhost";
        }
    }