diff options
| author | Kasra Bigdeli <[email protected]> | 2020-07-01 08:43:31 -0400 |
|---|---|---|
| committer | Kasra Bigdeli <[email protected]> | 2020-07-01 08:43:31 -0400 |
| commit | 03e494f7229a84b70c6db03bdfc28895fd6c4eaa (patch) | |
| tree | 8363f2d725625eed1933206843ebd95b960417d9 | |
| parent | a75284d9c29b015ae3bea74d5725385f7b27dde1 (diff) | |
| download | caprover-one-click-apps-03e494f7229a84b70c6db03bdfc28895fd6c4eaa.tar.gz caprover-one-click-apps-03e494f7229a84b70c6db03bdfc28895fd6c4eaa.zip | |
Added nginx redirect
| -rw-r--r-- | public/v2/apps/nginx-redirect.json | 31 | ||||
| -rw-r--r-- | public/v2/logos/nginx-redirect.png | bin | 0 -> 6353 bytes |
2 files changed, 31 insertions, 0 deletions
diff --git a/public/v2/apps/nginx-redirect.json b/public/v2/apps/nginx-redirect.json new file mode 100644 index 0000000..93b01c2 --- /dev/null +++ b/public/v2/apps/nginx-redirect.json @@ -0,0 +1,31 @@ +{ + "captainVersion": "2", + "documentation": "Taken from https://github.com/caprover/nginx-redirect", + "displayName": "Nginx Reverse Proxy", + "description": "A simple nginx image preloaded with redirect config that allows you to redirect to another URL. Useful for domain alias creation.", + "dockerCompose": { + "version": "3.3", + "services": { + "$$cap_appname": { + "image": "caprover/nginx-redirect:latest", + "restart": "always", + "environment": { + "RETURN_LOCATION": "return 301 $$cap_redirect_url$request_uri;" + } + } + } + }, + "instructions": { + "start": "This is a very simply redirect nginx image. It redirects all HTTP requests to the HTTP address that you define. It's useful when you want to redirect all traffic from www.example.com to example.com, see more details here: https://github.com/caprover/nginx-redirect", + "end": "Reverse redirect is deployed and available as $$cap_appname" + }, + "variables": [ + { + "id": "$$cap_redirect_url", + "label": "Redirect address", + "description": "For example use https://caprover.com to redirect all request to CapRover.", + "defaultValue": "https://caprover.com", + "validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/" + } + ] +} diff --git a/public/v2/logos/nginx-redirect.png b/public/v2/logos/nginx-redirect.png Binary files differnew file mode 100644 index 0000000..16ed558 --- /dev/null +++ b/public/v2/logos/nginx-redirect.png |
