diff --git a/conf/nginx.conf b/conf/nginx.conf index 1b17a2b..63c7537 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,5 +21,10 @@ set $target ''; '; proxy_pass $target; } + + location ~ /api{ + proxy_pass http://127.0.0.1:2233 + } } + } \ No newline at end of file diff --git a/run b/run index 8fae550..9a60dee 100644 --- a/run +++ b/run @@ -1,3 +1,3 @@ #!/bin/sh #创建运行容器 -docker run --name test -p 3000:3000 -p 2233:2233 test:1.0 +docker run --name test -p 8080:8080 test:1.0