summaryrefslogtreecommitdiffhomepage
path: root/public/v1/apps/nginx-reverse-proxy.json
blob: 19654e1323cc15dc261f407f18da3fb322910145 (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
{
    "captainVersion": "1",
    "documentation": "Taken from https://github.com/caprover/nginx-reverse-proxy",
    "dockerCompose": {
        "version": "3.3",
        "services": {
            "$$cap_appname": {
                "image": "caprover/nginx-reverse-proxy:latest",
                "restart": "always",
                "environment": {
                    "UPSTREAM_HTTP_ADDRESS": "$$UPSTREAM_HTTP_ADDRESS"
                }
            }
        }
    },
    "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": "$$UPSTREAM_HTTP_ADDRESS",
        "label": "Upstream address",
        "description": "For example use https://caprover.com to forward all request to CapRover. If you're forwarding http requests to a CapRover internal app use http://srv-captain--yourappnamehere",
        "defaultValue": "",
        "validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/"
    }]

}