stanley-king 4 năm trước cách đây
mục cha
commit
e400a1af72
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 2 2
      docker/conf/nginx/nginx-stanley-http.conf
  2. 1 0
      plot/app.py

+ 2 - 2
docker/conf/nginx/nginx-stanley-http.conf

@@ -63,8 +63,8 @@ http
 
         location /plot {
             root $folder_name;
-            proxy_pass         http://127.0.0.1:5000;
-            #proxy_redirect     off;
+            proxy_pass         http://host.docker.internal:5000;
+            proxy_redirect     off;
 
             proxy_set_header   Host                 $host;
             proxy_set_header   X-Real-IP            $remote_addr;

+ 1 - 0
plot/app.py

@@ -9,6 +9,7 @@ app = Flask(__name__)
 def index():
     return 'Hello, World!'
 
+
 if __name__ == "__main__":
     monkey.patch_all()
     http_server = WSGIServer(('0.0.0.0', 5000), app)