server { server_name callbacks2.atlasense.com; listen 8080; location ~ ^/(stage|qa)/flipt/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; proxy_ssl_verify off; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass https://flipt.$1.intra.onna.internal/$2$is_args$args; } location ~ ^/(qa|stage)/slackbot/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-ambassador.intra.onna.internal:8080/slackbot/$2$is_args$args; } location ~ ^/(alpha|beta|delta|echo|omega|qa|sigma|stage|whiskey|zulu)/oauth/callbacks/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-ambassador.intra.onna.internal:8080/userapi/oauth/callbacks/$2$is_args$args; } location ~ ^/(dev-.*|foxtrot)/oauth/callbacks/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1.gw.dev.intra.onna.internal/userapi/oauth/callbacks/$2$is_args$args; } location ~ ^/(alpha|qa|stage)/success-auth/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-internal.intra.onna.internal/$2$is_args$args; } location ~ ^/(alpha|qa|stage)/ops-auth/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-ops.intra.onna.internal/$2$is_args$args; } location ~ ^/(dev-.*)/success-auth/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-success.dev.intra.onna.internal/$2$is_args$args; } location ~ ^/(dev-.*)/slackbot/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1.gw.dev.intra.onna.internal/slackbot/$2$is_args$args; } location ~ ^/(dev-.*)/sendgrid/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1.gw.dev.intra.onna.internal/legalholdapi/$2$is_args$args; } location ~ ^/(qa|stage)/sendgrid/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-ambassador.intra.onna.internal:8080/legalholdapi/$2$is_args$args; } } server { server_name stripe.atlasense.com; listen 8080; location ~ ^/(alpha|beta|delta|echo|omega|qa|sigma|stage|whiskey|zulu)/@stripeWebhook$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Indexing-Status $http_x_indexing_status; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-ambassador.intra.onna.internal:8080/api.canonical/@stripeWebhook; } location ~ ^/foxtrot/@stripeWebhook$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Indexing-Status $http_x_indexing_status; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1.gw.dev.intra.onna.internal/api.canonical/@stripeWebhook; } location ~ ^/(dev-.*)/@stripeWebhook$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Indexing-Status $http_x_indexing_status; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1.gw.dev.intra.onna.internal/api.$1/@stripeWebhook; } } server { server_name wopi.atlasense.com; listen 8080; location ~ ^/(alpha|beta|delta|echo|omega|qa|sigma|stage|whiskey|zulu)/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Indexing-Status $http_x_indexing_status; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1-ambassador.intra.onna.internal:8080/api.canonical/$2$is_args$args; } location ~ ^/foxtrot/api/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Indexing-Status $http_x_indexing_status; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1.gw.dev.intra.onna.internal/api.canonical/$2$is_args$args; } location ~ ^/(dev-.*)/api/(.*)$ { proxy_http_version 1.1; proxy_buffering off; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Indexing-Status $http_x_indexing_status; proxy_set_header X-Real-IP $remote_addr; proxy_ssl_server_name on; resolver 169.254.169.254 ipv6=off; # GKE pod proxy_pass http://$1.gw.dev.intra.onna.internal/api.$1/$2$is_args$args; } }