Skip to content

Commit

Permalink
Minor fix to nginx dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Aug 8, 2018
1 parent ff67114 commit 3b4bfe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions net/grpc/gateway/docker/nginx/Dockerfile
Expand Up @@ -14,6 +14,9 @@

FROM grpc-web:prereqs

RUN cd /github/grpc-web/net/grpc/gateway/examples/echo && \
sed -i 's/localhost:9090/echo-server:9090/g' nginx.conf

RUN cd /github/grpc-web && \
make standalone-proxy

Expand Down
2 changes: 1 addition & 1 deletion net/grpc/gateway/examples/echo/nginx.conf
Expand Up @@ -21,7 +21,7 @@ http {
root /var/www/html;
}
location / {
grpc_pass echo-server:9090;
grpc_pass localhost:9090;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
Expand Down

0 comments on commit 3b4bfe2

Please sign in to comment.