This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathreadme-vars.yml
81 lines (73 loc) · 4.22 KB
/
readme-vars.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
# project information
project_name: kanzi
project_url: "https://lexigr.am/"
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/kanzi.png"
project_blurb: "[{{ project_name|capitalize }}]({{ project_url }}), formerly titled Kodi-Alexa, this custom skill is the ultimate voice remote control for navigating Kodi. It can do anything you can think of (100+ intents). This container also contains lexigram-cli to setup Kanzi with an Amazon Developer Account and automatically deploy it to Amazon."
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
project_deprecation_status: true
# supported architectures
available_architectures:
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
- { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"}
# development version
development_versions: false
development_versions_items:
- { tag: "latest", desc: "Stable" }
- { tag: "development", desc: "Releases from the `develop` branch" }
# container parameters
common_param_env_vars_enabled: true #PGID, PUID, etc, you can set it to 'optional'
param_container_name: "{{ project_name }}"
param_usage_include_env: true
param_env_vars:
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." }
- { env_var: "INVOCATION_NAME", env_value: "kanzi", desc: "Specify an invocation name for this skill, use either kanzi or kod." }
- { env_var: "URL_ENDPOINT", env_value: "https://server.com/kanzi/", desc: "Specify the URL at which the webserver is reachable either `https://kanzi.server.com/` or `https://server.com/kanzi/` Note the trailing slash **MUST** be included." }
param_usage_include_vols: true
param_volumes:
- { vol_path: "/config", vol_host_path: "</path/to/appdata/config>", desc: "Configuration files." }
param_usage_include_ports: true
param_ports:
- { external_port: "8000", internal_port: "8000", port_desc: "Application Port" }
# application setup block
app_setup_block_enabled: true
app_setup_block: |
### Initial setup
* Once you start the container for the first time, you need to perform some steps before use.
1. Create an Amazon Developer Account [here.](https://developer.amazon.com/)
2. Open a terminal in the `/config` directory of the docker container `docker exec -itw /config kanzi bash`
3. Enter `lexigram login --no-browser true` to setup your AWS credentials and copy the URL into a browser, login to your Amazon Developer Account and copy/paste the resulting authorisation code back into the terminal and press enter.
4. Edit the file `kodi.config` according to your local setup and this will be used by the included gunicorn server to respond to requests.
5. Restart the container to automatically deploy the Kanzi skill.
6. Reverse proxy this container with our [LetsEncrypt container](https://hub.docker.com/r/linuxserver/letsencrypt/) which contains preconfigured templates for reverse proxying the Kanzi container on either a subdomain or subfolder utilising Docker custom networking. Alternatively, if you already have an Nginx reverse proxy set up, you can use one of these location blocks to reverse proxy Kanzi to a subfolder or subdomain respectively.
Subfolder
```
location /kanzi {
rewrite ^/kanzi/(.*) /$1 break;
proxy_pass https://$IP-ADDRESS:8000;
proxy_redirect https://$IP-ADDRESS:8000 /kanzi;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Host $server_name;
}
```
Subdomain
```
location / {
proxy_pass https://$IP-ADDRESS:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Host $server_name;
}
```
app_setup_nginx_reverse_proxy_snippet: true
app_setup_nginx_reverse_proxy_block: ""
# changelog
changelogs:
- { date: "20.06.22:", desc: "Deprecate image." }
- { date: "13.04.19:", desc: "Initial Release." }