Skip to content

Commit

Permalink
fix(gateway): fix deploy/incoming CORS conf
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Nov 26, 2021
1 parent 6e34b7a commit 2911cc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/gateway/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ server {

if ($host ~* "(\w{8}(-\w{4}){3}-\w{12})\.(.+)$") {
set $appid $1;
proxy_pass http://system_server:9000/apps/$appid/deploy/incoming;
add_header appid $appid;
}

proxy_pass http://system_server:9000/apps/$appid/deploy/incoming;
add_header appid $appid;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
}
Expand Down

0 comments on commit 2911cc1

Please sign in to comment.