apiVersion: v1
kind: ConfigMap
metadata:
  name: nginx-conf
  namespace: production
data:
  redirects.conf: |
    server {
        listen 80;
        server_name www.openbesluitvorming.nl;
        return 301 https://openbesluitvorming.nl;
    }

    server {
        listen 80;
        server_name api.openbesluitvorming.nl;
        return 301 https://github.com/ontola/ori-search/blob/master/docs.md;
    }

    server {
        listen 80;
        server_name docs.openbesluitvorming.nl;
        return 301 https://github.com/ontola/ori-search/blob/master/docs.md;
    }

    server {
        listen 80;
        server_name api.openraadsinformatie.nl;
        return 301 https://github.com/ontola/ori-search/blob/master/docs.md;
    }

    server {
        listen 80;
        server_name docs.openraadsinformatie.nl;
        return 301 https://github.com/ontola/ori-search/blob/master/docs.md;
    }

    server {
        listen 80;
        server_name zoek.openstateninformatie.nl;
        return 302 https://openbesluitvorming.nl;
    }

    server {
        listen 80;
        server_name api.openstateninformatie.nl;
        return 301 https://github.com/ontola/ori-search/blob/master/docs.md;
    }

    server {
        listen 80;
        server_name docs.openstateninformatie.nl;
        return 301 https://github.com/ontola/ori-search/blob/master/docs.md;
    }

    server {
        listen 80;
        server_name ori.argu.co;
        return 301 https://openbesluitvorming.nl;
    }

    server {
        listen 80;
        server_name zoekv0.openraadsinformatie.nl;

        location /{
            proxy_set_header Host zoek.openraadsinformatie.nl;
            proxy_pass http://5.196.82.198;
        }
    }
