Skip to content

Commit

Permalink
fix nginx conf
Browse files Browse the repository at this point in the history
Signed-off-by: Kallol Roy <kallol.roy@progress.com>
  • Loading branch information
kalroy authored and Yashvi Jain committed Oct 9, 2024
1 parent 09eeee6 commit 6db8ae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions components/automate-load-balancer/habitat/config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,12 @@ http {

location /nginx_status {
stub_status on;
set $x_forwarded_for "{{cfg.nginx.http_include_x_forwarded_for.Value}}";
if ($x_forwarded_for = "true") {
set $x_forwarded_for "{{../cfg.ngx.http_include_x_forwarded_for}}";
{{#if ../cfg.ngx.http.enable_csp_header ~}}
access_log /var/log/nginx/access.log chef;
}
else {
{{ ~else }}
access_log off;
}
{{/if ~}}
allow 127.0.0.1;
deny all;
}
Expand Down
3 changes: 2 additions & 1 deletion dev/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ shared_buffers = "1GB"
deployment_type = "local"
manifest_cache_expiry = "0s"
package_cleanup_mode = "disabled"
products = ["automate-dev"]
products = ["chef-server"]
# products = ["automate-dev"]
[deployment.v1.svc.admin_user]
# Default admin user settings
username = "admin"
Expand Down

0 comments on commit 6db8ae6

Please sign in to comment.