小编给大家分享一下如何设置abp vNext nginx反向代理,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
nginx 配置
server { listen 443 ssl; ssl_certificate D:/Common/PHPStudy_Pro/phpstudy_pro/Extensions/Nginx1.15.11/conf/ssl/test.com.pem; ssl_certificate_key D:/Common/PHPStudy_Pro/phpstudy_pro/Extensions/Nginx1.15.11/conf/ssl/test.com.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; server_name test.com; root "D:/Common/PHPStudy_Pro/phpstudy_pro/WWW/test.com"; underscores_in_headers on; #解决多租户请求头里面包含 __tenant: 字段被忽略问题 location / { proxy_pass https://localhost:44382; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_cache_bypass $http_upgrade; } }
VS Host 项目 appsetting 文件配置:
{ "App": { "SelfUrl": "https://localhost:44382", "CorsOrigins": "https://*.BookStore.com,http://localhost:4200,https://test.com" }, "ConnectionStrings": { "Default": "Server=localhost;Database=BookStore;Trusted_Connection=True;MultipleActiveResultSets=true" }, "AuthServer": { "Authority": "https://test.com" } }
"Authority": "https://test.com" 一定要设置为 nginx 的域名,否则 IdentitServer4 验证不通过
以上是“如何设置abp vNext nginx反向代理”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。