mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	Puppetize nginx.conf
Fixes #201. (imported from commit 0feaff372d94009fa51dabf2bda55062826e2ed5)
This commit is contained in:
		
							
								
								
									
										31
									
								
								servers/puppet/files/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								servers/puppet/files/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| user humbug; | ||||
|  | ||||
|  | ||||
| # The rest of the file is the non-commented part of the Debian default config. | ||||
|  | ||||
| worker_processes 4; | ||||
| pid /var/run/nginx.pid; | ||||
|  | ||||
| events { | ||||
|     worker_connections 768; | ||||
| } | ||||
|  | ||||
| http { | ||||
|     sendfile on; | ||||
|     tcp_nopush on; | ||||
|     tcp_nodelay on; | ||||
|     keepalive_timeout 65; | ||||
|     types_hash_max_size 2048; | ||||
|  | ||||
|     include /etc/nginx/mime.types; | ||||
|     default_type application/octet-stream; | ||||
|  | ||||
|     access_log /var/log/nginx/access.log; | ||||
|     error_log /var/log/nginx/error.log; | ||||
|  | ||||
|     gzip on; | ||||
|     gzip_disable "msie6"; | ||||
|  | ||||
|     include /etc/nginx/conf.d/*.conf; | ||||
|     include /etc/nginx/sites-enabled/*; | ||||
| } | ||||
| @@ -203,6 +203,14 @@ class humbug_apache_base { | ||||
| class humbug_app_frontend { | ||||
|   $web_packages = [ "nginx", "memcached", "python-pylibmc", ] | ||||
|   package { $web_packages: ensure => "installed" } | ||||
|   file { "/etc/nginx/nginx.conf": | ||||
|     require => Package[nginx], | ||||
|     ensure => file, | ||||
|     owner  => "root", | ||||
|     group  => "root", | ||||
|     mode => 644, | ||||
|     source => "/root/humbug/servers/puppet/files/nginx/nginx.conf", | ||||
|   } | ||||
|   file { "/etc/nginx/sites-available/humbug": | ||||
|     require => Package[nginx], | ||||
|     ensure => file, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user