aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/config/configuration/garage/garage.toml11
-rw-r--r--app/deployment/garage.hcl3
2 files changed, 12 insertions, 2 deletions
diff --git a/app/config/configuration/garage/garage.toml b/app/config/configuration/garage/garage.toml
index 51ae81f..4d08cf2 100644
--- a/app/config/configuration/garage/garage.toml
+++ b/app/config/configuration/garage/garage.toml
@@ -8,7 +8,12 @@ rpc_bind_addr = "[::]:3901"
consul_host = "consul.service.2.cluster.deuxfleurs.fr:8500"
consul_service_name = "garage-rpc"
-bootstrap_peers = [ ]
+bootstrap_peers = []
+
+max_concurrent_rpc_requests = 12
+data_replication_factor = 3
+meta_replication_factor = 3
+meta_epidemic_fanout = 3
[rpc_tls]
ca_cert = "/garage/garage-ca.crt"
@@ -19,3 +24,7 @@ node_key = "/garage/garage.key"
s3_region = "garage"
api_bind_addr = "[::]:3900"
+[s3_web]
+bind_addr = "[::]:3902"
+root_domain = ".web.deuxfleurs.fr"
+index = "index.html"
diff --git a/app/deployment/garage.hcl b/app/deployment/garage.hcl
index d4c7c9e..fe0b641 100644
--- a/app/deployment/garage.hcl
+++ b/app/deployment/garage.hcl
@@ -12,13 +12,14 @@ job "garage" {
network {
port "s3" { static = 3900 }
port "rpc" { static = 3901 }
+ port "web" { static = 3902 }
}
task "server" {
driver = "docker"
config {
advertise_ipv6_address = true
- image = "lxpz/garage_amd64:4"
+ image = "lxpz/garage_amd64:v0.1.1"
network_mode = "host"
volumes = [
"/mnt/storage/garage/data:/garage/data",