Skip to content

Commit f6f1de0

Browse files
committed
updated nginx to use js
1 parent 784fd08 commit f6f1de0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nginx.conf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ events {}
1717
# }
1818
# }
1919

20-
js_import conf.d/headers.js; # Load JavaScript code from here
21-
js_set $access_headers logging.kvAccess; # Fill variable from JS function
22-
# log_format kvpairs $access_log_headers; # Define special log format
23-
2420
http {
21+
22+
js_import conf.d/headers.js; # Load JavaScript code from here
23+
js_set $access_headers logging.kvAccess; # Fill variable from JS function
24+
2525
server {
2626
listen 8080;
2727
root /usr/share/nginx/html;
2828
# access_log /var/log/nginx/access.log kvpairs;
2929
return 200 "Request Headers:\n\n$host$request_uri\n\n$$access_headers";
3030
}
31-
}
31+
}

0 commit comments

Comments
 (0)