diff --git a/docs/研发/单机部署.vsdx b/docs/研发/单机部署.vsdx new file mode 100644 index 00000000..767074f5 Binary files /dev/null and b/docs/研发/单机部署.vsdx differ diff --git a/projects/WebSPA/Startup.cs b/projects/WebSPA/Startup.cs index 49c9959b..6969dce7 100644 --- a/projects/WebSPA/Startup.cs +++ b/projects/WebSPA/Startup.cs @@ -44,6 +44,11 @@ namespace WebSPA name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); + + app.Use(async (context, next) => + { + await next.Invoke(); + }); } } } \ No newline at end of file diff --git a/tools/nginx-1.16.0/conf/nginx.conf b/tools/nginx-1.16.0/conf/nginx.conf index 2562a669..1e843ae4 100644 --- a/tools/nginx-1.16.0/conf/nginx.conf +++ b/tools/nginx-1.16.0/conf/nginx.conf @@ -32,6 +32,7 @@ http { server_name localhost; location / { + #proxy_set_header Host $host:$server_port; proxy_pass http://localhost:5001/; if ($http_user_agent ~* "(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino") { #rewrite ^(.*) http://localhost:5002$1 permanent;