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:
Greg Karékinian 2018-08-16 15:59:44 +02:00
parent f31322ab81
commit 2f87e7c07c
3 changed files with 5 additions and 1 deletions

View 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

View File

@ -8,6 +8,7 @@
#
include_recipe "ipfs::cluster"
include_recipe "ipfs::cluster_service"
unless node.chef_environment == "development"
include_recipe "firewall"

View File

@ -31,7 +31,7 @@ template "#{node['nginx']['dir']}/sites-available/ipfs.kosmos.org" do
root_directory: root_directory,
ssl_cert: "/etc/letsencrypt/live/ipfs.kosmos.org/fullchain.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
notifies :reload, 'service[nginx]', :delayed