Use openresty node attributes in openresty templates

This commit is contained in:
Râu Cao
2023-07-31 15:07:35 +02:00
parent 7f2805831c
commit eab94090e8
6 changed files with 14 additions and 12 deletions

View File

@@ -12,8 +12,8 @@ server {
add_header Strict-Transport-Security "max-age=15768000";
access_log <%= node[:nginx][:log_dir] %>/<%= @server_name %>.access.log json;
error_log <%= node[:nginx][:log_dir] %>/<%= @server_name %>.error.log warn;
access_log <%= node[:openresty][:log_dir] %>/<%= @server_name %>.access.log json;
error_log <%= node[:openresty][:log_dir] %>/<%= @server_name %>.error.log warn;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;