summaryrefslogtreecommitdiffhomepage
path: root/public/v2/apps/nginx-reverse-proxy.json
blob: 044ab6ad557ef9aa1d075fcdb3d37127f9d37694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
    "captainVersion": "2",
    "documentation": "Taken from https://github.com/caprover/nginx-reverse-proxy",
    "displayName": "Nginx Reverse Proxy",
    "description": "A simple nginx image preloaded with reverse proxy config that allows you to proxy a URL to another URL",
    "dockerCompose": {
        "version": "3.3",
        "services": {
            "$$cap_appname": {
                "image": "caprover/nginx-reverse-proxy:latest",
                "restart": "always",
                "environment": {
                    "UPSTREAM_HTTP_ADDRESS": "$$cap_upstream_http_address",
                    "CLIENT_MAX_BODY_SIZE": "$$cap_max_body_size"
                }
            }
        }
    },
    "instructions": {
        "start": "This is a very simply reverse proxy image. It forwards all HTTP requests to the HTTP address that you define.",
        "end": "Reverse Proxy is deployed and available as $$cap_appname"
    },
    "variables": [{
        "id": "$$cap_upstream_http_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",
        "defaultValue": "",
        "validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/"
    }, {
        "id": "$$cap_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.",
        "defaultValue": "256M",
        "validRegex": "/^\\d+M$/"
    }]

}