Skip to content

Commit

Permalink
Add nginx server port (#147)
Browse files Browse the repository at this point in the history
Also forward the port and not only the host.
  • Loading branch information
frodrigo authored Dec 15, 2020
1 parent 83690cb commit 308383a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ If you are running martin behind nginx proxy, you may want to rewrite request UR
```nginx
location ~ /tiles/(?<fwd_path>.*) {
proxy_set_header X-Rewrite-URL $request_uri;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme; # or $http_x_forwarded_proto
proxy_pass http://martin:3000/$fwd_path$is_args$args;
}
Expand Down

0 comments on commit 308383a

Please sign in to comment.