Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
fix: set ipfs ssl with bool
Browse files Browse the repository at this point in the history
false by default to allow go-ipfs compatibility
  • Loading branch information
v-stickykeys committed Apr 7, 2022
1 parent b5e3677 commit 22c9aec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
20 changes: 10 additions & 10 deletions modules/ecs/ipfs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@ variable "enable_pubsub" {
description = "True to enable IPFS PubSub"
}

variable "dht_server_mode" {
type = bool
description = "True to enable DHT server mode to query and respond to queries"
}

variable "debug" {
type = string
description = "IPFS debug env var"
}

variable "dht_server_mode" {
type = bool
description = "True to enable DHT server mode to query and respond to queries"
}

variable "directory_namespace" {
type = string
description = "Directory for logs and state"
Expand All @@ -182,6 +182,11 @@ variable "blocks_backend" {
description = "Location to store IPFS blocks. Use 's3' for persistence, or 'default' for advanced use cases."
}

variable "datastore_backend" {
type = string
description = "Location to store IPFS datastore. Use 's3' for persistence, or 'default' for advanced use cases."
}

variable "keys_backend" {
type = string
description = "Location to store IPFS keys. Use 's3' for persistence, or 'default' for advanced use cases."
Expand All @@ -191,8 +196,3 @@ variable "pins_backend" {
type = string
description = "Location to store IPFS pins. Use 's3' for persistence, or 'default' for advanced use cases."
}

variable "datastore_backend" {
type = string
description = "Location to store IPFS datastore. Use 's3' for persistence, or 'default' for advanced use cases."
}
4 changes: 2 additions & 2 deletions modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ module "ipfs" {

acm_certificate_arn = var.acm_certificate_arn
aws_region = var.aws_region
base_tags = var.default_tags
base_namespace = local.namespace
base_tags = var.default_tags
ceramic_network = var.ipfs_ceramic_network
debug = var.ipfs_debug_env_var
dht_server_mode = true
Expand Down Expand Up @@ -67,7 +67,7 @@ module "ipfs" {
datastore_backend = var.ipfs_datastore_backend
keys_backend = var.ipfs_keys_backend
pins_backend = var.ipfs_pins_backend
use_ssl = true
use_ssl = var.ipfs_use_ssl
vpc_cidr_block = var.vpc_cidr_block
vpc_id = var.vpc_id
vpc_security_group_id = var.vpc_security_group_id
Expand Down
6 changes: 6 additions & 0 deletions modules/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,9 @@ variable "ipfs_pins_backend" {
description = "Location to store IPFS pins. Use 's3' for persistence, or 'default' for advanced use cases."
default = "s3"
}

variable "ipfs_use_ssl" {
type = string
description = "True to use ssl for IPFS swarm connections. False by default for go-ipfs compatibility."
default = false
}

0 comments on commit 22c9aec

Please sign in to comment.