Updated reverse proxy
This commit is contained in:
parent
f667aea46e
commit
cda3200f62
|
|
@ -8,8 +8,8 @@
|
||||||
"image": "caprover/nginx-reverse-proxy:latest",
|
"image": "caprover/nginx-reverse-proxy:latest",
|
||||||
"restart": "always",
|
"restart": "always",
|
||||||
"environment": {
|
"environment": {
|
||||||
"UPSTREAM_HTTP_ADDRESS": "$$UPSTREAM_HTTP_ADDRESS",
|
"UPSTREAM_HTTP_ADDRESS": "$$cap_upstream_http_address",
|
||||||
"CLIENT_MAX_BODY_SIZE": "$$CLIENT_MAX_BODY_SIZE"
|
"CLIENT_MAX_BODY_SIZE": "$$cap_max_body_size"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -19,17 +19,17 @@
|
||||||
"end": "Reverse Proxy is deployed and available as $$cap_appname"
|
"end": "Reverse Proxy is deployed and available as $$cap_appname"
|
||||||
},
|
},
|
||||||
"variables": [{
|
"variables": [{
|
||||||
"id": "$$UPSTREAM_HTTP_ADDRESS",
|
"id": "$$cap_upstream_http_address",
|
||||||
"label": "Upstream address",
|
"label": "Upstream address",
|
||||||
"description": "For example use https://caprover.com to forward all request to CapRover.\n If you're forwarding http requests to a CapRover internal app use http://srv-captain--yourappnamehere or if you want a particular port, use http://srv-captain--yourappnamehere:8080",
|
"description": "For example use https://caprover.com to forward all request to CapRover.\n If you're forwarding http requests to a CapRover internal app use http://srv-captain--yourappnamehere or if you want a particular port, use http://srv-captain--yourappnamehere:8080",
|
||||||
"defaultValue": "",
|
"defaultValue": "",
|
||||||
"validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/"
|
"validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/"
|
||||||
}, {
|
}, {
|
||||||
"id": "$$CLIENT_MAX_BODY_SIZE",
|
"id": "$$cap_max_body_size",
|
||||||
"label": "Client max body size",
|
"label": "Client max body size",
|
||||||
"description": "Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.",
|
"description": "Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.",
|
||||||
"defaultValue": "256M",
|
"defaultValue": "256M",
|
||||||
"validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/"
|
"validRegex": "/^\\d+M$/"
|
||||||
}]
|
}]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue