Compare commits

...

2 Commits

Author SHA1 Message Date
6a05c0087f 2.0.38 2019-01-25 12:37:13 +01:00
4206c9bc8a fix(core): update 2019-01-25 12:37:12 +01:00
3 changed files with 4 additions and 2 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartnginx",
"version": "2.0.37",
"version": "2.0.38",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartnginx",
"version": "2.0.37",
"version": "2.0.38",
"private": false,
"description": "control nginx from node, TypeScript ready",
"main": "dist/index.js",

View File

@ -99,6 +99,8 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string,
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_next_upstream error timeout http_404 http_429 http_500 http_502;
proxy_next_upstream_tries 5;
proxy_pass http://${hostNameArg};
}
}