On the use of nginx reverse proxy
See original GitHub issueSwagger-Net" version=“8.3.9.301”
nginx config
server {
listen 8001;
server_name api.jhtmsf.com;
location / {
proxy_pass http://127.0.0.1:8007;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 2000m;
root html;
index index.html index.htm;
}
}
Thank you very much for your selfless dedication. Can you solve this problem through configuration?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
NGINX Reverse Proxy | NGINX Documentation
Configure NGINX as a reverse proxy for HTTP and other protocols, with support for modifying request headers and fine-tuned buffering of responses. This...
Read more >How to setup an Nginx reverse proxy server example
Clients access all backend resources through a single web address. · The reverse proxy can serve static content, which reduces the load on ......
Read more >Understanding Nginx As A Reverse Proxy
Nginx reverse proxy acts as an intermediate server that intercepts client requests and forwards them to the appropriate upstream backend server ...
Read more >How To Configure Nginx as a Reverse Proxy on Ubuntu ...
This tutorial will demonstrate how to set up a reverse proxy using Nginx, a popular web server and reverse proxy solution.
Read more >How Does Nginx Reverse Proxy Work ? (Explained)
A reverse proxy acts as a connection point for clients, users, and application servers. It manages all access policies and traffic routing, as ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think all you have to do adjust the rootUrl in the config: https://github.com/heldersepu/Swagger-Net/blob/master/Swagger.Net/Nuget/Content/App_Start/SwaggerConfig.cs.pp#L30
thank you. I already know how to deal with this problem.