Add the ability to override the IPFS port that nginx connects to
This allows us to use the API proxy from the cluster
This commit is contained in:
		
							parent
							
								
									f31322ab81
								
							
						
					
					
						commit
						2f87e7c07c
					
				
							
								
								
									
										3
									
								
								site-cookbooks/kosmos-ipfs/attributes/default.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								site-cookbooks/kosmos-ipfs/attributes/default.rb
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | |||||||
|  | # Override to connect to the IPFS cluster proxy on port 9095 | ||||||
|  | # (https://cluster.ipfs.io/documentation/composite-clusters/) | ||||||
|  | node.default['kosmos-ipfs']['nginx']['api_port'] = 5001 | ||||||
| @ -8,6 +8,7 @@ | |||||||
| # | # | ||||||
| 
 | 
 | ||||||
| include_recipe "ipfs::cluster" | include_recipe "ipfs::cluster" | ||||||
|  | include_recipe "ipfs::cluster_service" | ||||||
| 
 | 
 | ||||||
| unless node.chef_environment == "development" | unless node.chef_environment == "development" | ||||||
|   include_recipe "firewall" |   include_recipe "firewall" | ||||||
|  | |||||||
| @ -31,7 +31,7 @@ template "#{node['nginx']['dir']}/sites-available/ipfs.kosmos.org" do | |||||||
|             root_directory:          root_directory, |             root_directory:          root_directory, | ||||||
|             ssl_cert:                "/etc/letsencrypt/live/ipfs.kosmos.org/fullchain.pem", |             ssl_cert:                "/etc/letsencrypt/live/ipfs.kosmos.org/fullchain.pem", | ||||||
|             ssl_key:                 "/etc/letsencrypt/live/ipfs.kosmos.org/privkey.pem", |             ssl_key:                 "/etc/letsencrypt/live/ipfs.kosmos.org/privkey.pem", | ||||||
|             ipfs_api_port:           5001, |             ipfs_api_port:           node['kosmos-ipfs']['nginx']['api_port'], | ||||||
|             ipfs_external_api_port:  5444 |             ipfs_external_api_port:  5444 | ||||||
| 
 | 
 | ||||||
|   notifies :reload, 'service[nginx]', :delayed |   notifies :reload, 'service[nginx]', :delayed | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user