diff options
Diffstat (limited to 'cvp/docker/nginx/sites-enabled')
-rw-r--r-- | cvp/docker/nginx/sites-enabled/default | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cvp/docker/nginx/sites-enabled/default b/cvp/docker/nginx/sites-enabled/default index b6b6a7ed..e2e718ce 100644 --- a/cvp/docker/nginx/sites-enabled/default +++ b/cvp/docker/nginx/sites-enabled/default @@ -101,6 +101,12 @@ server { proxy_set_header Host $host; } + location ~* /api/v1/suts/hardware/([a-zA-Z0-9\-]+) { + proxy_pass http://cvpapi/api/v1/suts/hardware/$1; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; + } + location /api/v1/ { proxy_pass http://testapi/api/v1/; proxy_set_header X-Real-IP $remote_addr; |