10 lines
		
	
	
		
			463 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			463 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
#
 | 
						|
# Cookbook:: kosmos_openresty
 | 
						|
# Recipe:: default
 | 
						|
#
 | 
						|
 | 
						|
node.normal['openresty']['log_formats']['json'] = '{"ip":"$remote_addr","time":"$time_local","host":"$host","method":"$request_method","uri":"$uri","status":$status,"size":$body_bytes_sent,"referer":"$http_referer","upstream_addr":"$upstream_addr","upstream_response_time":"$upstream_response_time","ua":"$http_user_agent"}'
 | 
						|
 | 
						|
# Install openresty from official packages
 | 
						|
include_recipe 'openresty::apt_package'
 |