Initial commit with kopia app working
This commit is contained in:
24
apps/whoami/config.json
Normal file
24
apps/whoami/config.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "Whoami",
|
||||
"id": "whoami",
|
||||
"available": true,
|
||||
"short_desc": "Tiny Go server that prints os information and HTTP request to output.",
|
||||
"author": "traefik",
|
||||
"port": 8382,
|
||||
"categories": [
|
||||
"utilities"
|
||||
],
|
||||
"description": "Tiny Go webserver that prints OS information and HTTP request to output.",
|
||||
"tipi_version": 2,
|
||||
"version": "v1.11.0",
|
||||
"source": "https://github.com/traefik/whoami",
|
||||
"exposable": true,
|
||||
"supported_architectures": [
|
||||
"arm64",
|
||||
"amd64"
|
||||
],
|
||||
"created_at": 1745082405284,
|
||||
"updated_at": 1745674974072,
|
||||
"dynamic_config": true,
|
||||
"form_fields": []
|
||||
}
|
||||
10
apps/whoami/docker-compose.json
Normal file
10
apps/whoami/docker-compose.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"services": [
|
||||
{
|
||||
"name": "whoami",
|
||||
"image": "traefik/whoami:v1.11.0",
|
||||
"isMain": true,
|
||||
"internalPort": "80"
|
||||
}
|
||||
]
|
||||
}
|
||||
34
apps/whoami/docker-compose.yml
Normal file
34
apps/whoami/docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
whoami:
|
||||
image: traefik/whoami:v1.11.0
|
||||
container_name: whoami
|
||||
ports:
|
||||
- ${APP_PORT}:80
|
||||
networks:
|
||||
- tipi_main_network
|
||||
labels:
|
||||
# Main
|
||||
traefik.enable: true
|
||||
traefik.http.middlewares.whoami-web-redirect.redirectscheme.scheme: https
|
||||
traefik.http.services.whoami.loadbalancer.server.port: 80
|
||||
# Web
|
||||
traefik.http.routers.whoami-insecure.rule: Host(`${APP_DOMAIN}`)
|
||||
traefik.http.routers.whoami-insecure.entrypoints: web
|
||||
traefik.http.routers.whoami-insecure.service: whoami
|
||||
traefik.http.routers.whoami-insecure.middlewares: whoami-web-redirect
|
||||
# Websecure
|
||||
traefik.http.routers.whoami.rule: Host(`${APP_DOMAIN}`)
|
||||
traefik.http.routers.whoami.entrypoints: websecure
|
||||
traefik.http.routers.whoami.service: whoami
|
||||
traefik.http.routers.whoami.tls.certresolver: myresolver
|
||||
# Local domain
|
||||
traefik.http.routers.whoami-local-insecure.rule: Host(`whoami.${LOCAL_DOMAIN}`)
|
||||
traefik.http.routers.whoami-local-insecure.entrypoints: web
|
||||
traefik.http.routers.whoami-local-insecure.service: whoami
|
||||
traefik.http.routers.whoami-local-insecure.middlewares: whoami-web-redirect
|
||||
# Local domain secure
|
||||
traefik.http.routers.whoami-local.rule: Host(`whoami.${LOCAL_DOMAIN}`)
|
||||
traefik.http.routers.whoami-local.entrypoints: websecure
|
||||
traefik.http.routers.whoami-local.service: whoami
|
||||
traefik.http.routers.whoami-local.tls: true
|
||||
runtipi.managed: true
|
||||
43
apps/whoami/metadata/description.md
Normal file
43
apps/whoami/metadata/description.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# Whoami
|
||||
|
||||
Tiny Go webserver that prints OS information and HTTP request to output.
|
||||
|
||||
## Usage
|
||||
|
||||
### Paths
|
||||
|
||||
#### `/[?wait=d]`
|
||||
|
||||
Returns the whoami information (request and network information).
|
||||
|
||||
The optional `wait` query parameter can be provided to tell the server to wait before sending the response.
|
||||
The duration is expected in Go's [`time.Duration`](https://golang.org/pkg/time/#ParseDuration) format (e.g. `/?wait=100ms` to wait 100 milliseconds).
|
||||
|
||||
The optional `env` query parameter can be set to `true` to add the environment variables to the response.
|
||||
|
||||
#### `/api`
|
||||
|
||||
Returns the whoami information (and some extra information) as JSON.
|
||||
|
||||
The optional `env` query parameter can be set to `true` to add the environment variables to the response.
|
||||
|
||||
#### `/bench`
|
||||
|
||||
Always return the same response (`1`).
|
||||
|
||||
#### `/data?size=n[&unit=u]`
|
||||
|
||||
Creates a response with a size `n`.
|
||||
|
||||
The unit of measure, if specified, accepts the following values: `KB`, `MB`, `GB`, `TB` (optional, default: bytes).
|
||||
|
||||
#### `/echo`
|
||||
|
||||
WebSocket echo.
|
||||
|
||||
#### `/health`
|
||||
|
||||
Heath check.
|
||||
|
||||
- `GET`, `HEAD`, ...: returns a response with the status code defined by the `POST`
|
||||
- `POST`: changes the status code of the `GET` (`HEAD`, ...) response.
|
||||
BIN
apps/whoami/metadata/logo.jpg
Normal file
BIN
apps/whoami/metadata/logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user