Skip to content

Commit f61df25

Browse files
authored
Merge pull request #310 from code0-tech/232-increase-upload-limit-for-outline
Increase upload limit for cygnus and outline
2 parents 1f3dc58 + b124436 commit f61df25

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

modules/docker/proxy/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,12 @@ resource "docker_container" "proxy" {
6969
content = upload.value["private_key"]
7070
}
7171
}
72+
73+
dynamic "upload" {
74+
for_each = var.hostname_config_overrides
75+
content {
76+
file = "/etc/nginx/vhost.d/${upload.value["hostname"]}"
77+
content = upload.value["config"]
78+
}
79+
}
7280
}

modules/docker/proxy/variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
variable "certificate_hostnames" {
22
type = set(string)
33
}
4+
5+
variable "hostname_config_overrides" {
6+
type = list(object({
7+
hostname = string
8+
config = string
9+
}))
10+
11+
default = []
12+
}

system/administration/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ module "proxy" {
3232
"outline.code0.tech",
3333
"codezero.build"
3434
]
35+
36+
hostname_config_overrides = [
37+
{
38+
hostname = "codezero.build"
39+
config = "client_max_body_size 20m;"
40+
},
41+
{
42+
hostname = "outline.code0.tech"
43+
config = "client_max_body_size 20m;"
44+
}
45+
]
3546
}
3647

3748
module "outline" {

0 commit comments

Comments
 (0)