blob: 462fae5059d3a0f33bd6d418ab1cc8b0773e214a [file] [log] [blame]
# virtual host loaded by the API Gateway for local development with docker-compose
# NOTE: This upstream should come from a service discovery component
# All the upstreams could be generated sepparately and only included in the API Gateway
upstream whisk_controller {
server whisk.controller:8888;
keepalive 16;
}
server {
listen 443 default ssl;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_certificate /etc/ssl/openwhisk-server-cert.pem;
ssl_certificate_key /etc/ssl/openwhisk-server-key.pem;
ssl_verify_client off;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers RC4:HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
proxy_ssl_session_reuse off;
proxy_http_version 1.1;
proxy_set_header Connection "";
client_max_body_size 50m; # allow bigger functions to be deployed
location /docs {
proxy_pass http://whisk_controller;
}
location /api-docs {
proxy_pass http://whisk_controller;
}
location /api/v1 {
proxy_pass http://whisk_controller;
proxy_read_timeout 70s; # 60+10 additional seconds to allow controller to terminate request
}
location /blackbox.tar.gz {
return 301 https://github.com/apache/incubator-openwhisk-runtime-docker/releases/download/sdk%400.1.0/blackbox-0.1.0.tar.gz;
}
}