File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 11variable "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+ }
Original file line number Diff line number Diff 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
3748module "outline" {
You can’t perform that action at this time.
0 commit comments