From 92eaf5f19a2a6d27c487c6bcad97b4c640a9d4f6 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 17 Jan 2019 02:50:32 +0100 Subject: [PATCH] fix(core): update --- package-lock.json | 2 +- ts/smartnginx.snippets.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index e797f07..1da42f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -332,7 +332,7 @@ }, "@types/which": { "version": "1.3.1", - "resolved": "https://verdaccio.lossless.one/@types%2fwhich/-/which-1.3.1.tgz", + "resolved": "https://registry.npmjs.org/@types/which/-/which-1.3.1.tgz", "integrity": "sha512-ZrJDWpvg75LTGX4XwuneY9s6bF3OeZcGTpoGh3zDV9ytzcHMFsRrMIaLBRJZQMBoGyKs6unBQfVdrLZiYfb1zQ==" }, "@types/yargs": { diff --git a/ts/smartnginx.snippets.ts b/ts/smartnginx.snippets.ts index b49c57d..723ceae 100644 --- a/ts/smartnginx.snippets.ts +++ b/ts/smartnginx.snippets.ts @@ -90,8 +90,11 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string) ssl_certificate_key ${paths.nginxHostDirPath}/${hostNameArg}.private.pem; location / { + proxy_set_header Host $http_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_pass http://${hostNameArg}; - include /etc/nginx/proxy_params; } location ~ /\.git { deny all;