mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-19 19:18:10 +01:00
intial build
This commit is contained in:
1
teamspeak/CHANGELOG.md
Normal file
1
teamspeak/CHANGELOG.md
Normal file
@@ -0,0 +1 @@
|
||||
- Initial release
|
||||
61
teamspeak/Dockerfile
Normal file
61
teamspeak/Dockerfile
Normal file
@@ -0,0 +1,61 @@
|
||||
FROM bartixxx32/teamspeak3:latest
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
ARG BASHIO_VERSION=0.13.1
|
||||
RUN \
|
||||
################
|
||||
# Install apps #
|
||||
################
|
||||
apk add --no-cache curl jq \
|
||||
\
|
||||
##################
|
||||
# Install bashio #
|
||||
##################
|
||||
&& mkdir -p /tmp/bashio \
|
||||
&& curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \
|
||||
| tar -xzf - --strip 1 -C /tmp/bashio \
|
||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||
&& rm -rf /tmp/bashio
|
||||
###############
|
||||
# Adapt image #
|
||||
###############
|
||||
# Correct data path
|
||||
#&& grep -rl "/app/data" /app | xargs sed -i 's|/app/data|/data|g' \
|
||||
# Add custom instructions to run.sh
|
||||
#&& sed -i '1d' /app/mealie/run.sh \
|
||||
#&& cat /app/mealie/run.sh >> /run.txt \
|
||||
#&& cat /run.txt > /app/mealie/run.sh \
|
||||
#&& chmod +x /app/mealie/run.sh
|
||||
# Add custom caddy instructions for ingress
|
||||
#&& cat /caddy.txt >> /app/Caddyfile
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
### LABELS
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_DESCRIPTION
|
||||
ARG BUILD_NAME
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_REPOSITORY
|
||||
ARG BUILD_VERSION
|
||||
LABEL \
|
||||
io.hass.name="${BUILD_NAME}" \
|
||||
io.hass.description="${BUILD_DESCRIPTION}" \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="tyjtyj (https://github.com/tyjtyj)" \
|
||||
org.opencontainers.image.title="${BUILD_NAME}" \
|
||||
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
|
||||
org.opencontainers.image.vendor="Home Assistant Add-ons" \
|
||||
org.opencontainers.image.authors="tyjtyj (https://github.com/tyjtyj)" \
|
||||
org.opencontainers.image.licenses="MIT" \
|
||||
org.opencontainers.image.url="https://github.com/tyjtyj" \
|
||||
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
|
||||
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
|
||||
org.opencontainers.image.created=${BUILD_DATE} \
|
||||
org.opencontainers.image.revision=${BUILD_REF} \
|
||||
org.opencontainers.image.version=${BUILD_VERSION}
|
||||
36
teamspeak/README.md
Normal file
36
teamspeak/README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Hass.io Add-ons: Teamspeak
|
||||
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield]
|
||||
|
||||
## About
|
||||
TeamSpeak offers the ideal voice communication for online gaming, education and training, internal business communication, and staying in touch with friends and family. Our primary focus is delivering a solution that is easy to use, with high security standards, excellent voice quality, and low system and bandwidth usage.
|
||||
This addon is based on the [docker image](https://hub.docker.com/r/bartixxx32/teamspeak3) from bartixxx32.
|
||||
|
||||
## Installation
|
||||
|
||||
The installation of this add-on is pretty straightforward and not different in
|
||||
comparison to installing any other Hass.io add-on.
|
||||
|
||||
1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance.
|
||||
1. Install this add-on.
|
||||
1. Click the `Save` button to store your configuration.
|
||||
1. Start the add-on.
|
||||
1. Check the logs of the add-on to see if everything went well.
|
||||
1. Carefully configure the add-on to your preferences, see the official documentation for for that.
|
||||
|
||||
## Configuration
|
||||
|
||||
- Start the addon. Wait a while and check the log for any errors.
|
||||
|
||||
## Support
|
||||
|
||||
If you have in issue with your installation, please be sure to checkout github.
|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
[smb-shield]: https://img.shields.io/badge/smb-yes-green.svg
|
||||
[openvpn-shield]: https://img.shields.io/badge/openvpn-yes-green.svg
|
||||
[ingress-shield]: https://img.shields.io/badge/ingress-yes-green.svg
|
||||
[ssl-shield]: https://img.shields.io/badge/ssl-yes-green.svg
|
||||
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
||||
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
||||
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
|
||||
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
|
||||
45
teamspeak/config.json
Normal file
45
teamspeak/config.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "Teamspeak server",
|
||||
"version": "3",
|
||||
"upstream": "3",
|
||||
"slug": "teamspeak",
|
||||
"description": "voice communication for online gaming, education and training",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:9987]",
|
||||
"startup": "services",
|
||||
"boot": "auto",
|
||||
"ingress": false,
|
||||
"ingress_port": 8099,
|
||||
"panel_icon": "mdi:silverware-fork-knife",
|
||||
"ports": {
|
||||
"9987/udp": "9987",
|
||||
"10011/tcp": "10011",
|
||||
"30033/tcp": "30033"
|
||||
},
|
||||
"ports_description": {
|
||||
"80/udp": "Voice",
|
||||
"10011/tcp": "ServerQuery (raw)",
|
||||
"30033/tcp": "Filetransfer",
|
||||
},
|
||||
"map": [
|
||||
],
|
||||
"environment": {
|
||||
"PATH": "${PATH}:/data"
|
||||
},
|
||||
"options": {
|
||||
"ssl": false,
|
||||
"certfile": "fullchain.pem",
|
||||
"keyfile": "privkey.pem"
|
||||
},
|
||||
"schema": {
|
||||
"ssl": "bool",
|
||||
"certfile": "str",
|
||||
"keyfile": "str"
|
||||
},
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armhf",
|
||||
"armv7"
|
||||
]
|
||||
}
|
||||
BIN
teamspeak/icon.png
Normal file
BIN
teamspeak/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 318 KiB |
BIN
teamspeak/logo.png
Normal file
BIN
teamspeak/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 318 KiB |
70
teamspeak/rootfs/caddy.txt
Normal file
70
teamspeak/rootfs/caddy.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
:%%port%% {
|
||||
@proxied path /api/* /docs /openapi.json
|
||||
|
||||
@static {
|
||||
file
|
||||
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.webp
|
||||
}
|
||||
|
||||
encode gzip zstd
|
||||
|
||||
# Handles Recipe Images / Assets
|
||||
handle_path /api/media/recipes/* {
|
||||
header Access-Control-Allow-Origin *
|
||||
header X-Content-Type-Options nosniff
|
||||
header X-Robots-Tag none
|
||||
header -X-Frame-Options
|
||||
header Accept-Encoding ""
|
||||
header Connection $connection_upgrade
|
||||
header Upgrade $http_upgrade
|
||||
header Host $http_host
|
||||
header X-Forwarded-For $proxy_add_x_forwarded_for
|
||||
header X-Forwarded-Proto $scheme
|
||||
header X-NginX-Proxy true
|
||||
header X-External-Path $http_x_ingress_path
|
||||
header X-Real-IP $remote_addr
|
||||
header @static Cache-Control max-age=31536000
|
||||
root * /app/data/recipes/
|
||||
file_server
|
||||
}
|
||||
|
||||
handle @proxied {
|
||||
header Access-Control-Allow-Origin *
|
||||
header X-Content-Type-Options nosniff
|
||||
header X-Robots-Tag none
|
||||
header -X-Frame-Options
|
||||
header Accept-Encoding ""
|
||||
header Connection $connection_upgrade
|
||||
header Upgrade $http_upgrade
|
||||
header Host $http_host
|
||||
header X-Forwarded-For $proxy_add_x_forwarded_for
|
||||
header X-Forwarded-Proto $scheme
|
||||
header X-NginX-Proxy true
|
||||
header X-Real-IP $remote_addr
|
||||
header X-External-Path $http_x_ingress_path;
|
||||
rewrite * {Referer}{uri}
|
||||
reverse_proxy http://127.0.0.1:9000
|
||||
}
|
||||
|
||||
handle {
|
||||
header Access-Control-Allow-Origin *
|
||||
header X-Content-Type-Options nosniff
|
||||
header X-Robots-Tag none
|
||||
header -X-Frame-Options
|
||||
header Accept-Encoding ""
|
||||
header Connection $connection_upgrade
|
||||
header Upgrade $http_upgrade
|
||||
header Host $http_host
|
||||
header X-Forwarded-For $proxy_add_x_forwarded_for
|
||||
header X-Forwarded-Proto $scheme
|
||||
header X-NginX-Proxy true
|
||||
header X-Real-IP $remote_addr
|
||||
header X-External-Path $http_x_ingress_path;
|
||||
header @static Cache-Control max-age=31536000
|
||||
root * /app/dist
|
||||
try_files {path}.html {path} /
|
||||
file_server
|
||||
}
|
||||
|
||||
}
|
||||
59
teamspeak/rootfs/run.txt
Normal file
59
teamspeak/rootfs/run.txt
Normal file
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/env bashio
|
||||
|
||||
##########
|
||||
# BANNER #
|
||||
##########
|
||||
|
||||
if bashio::supervisor.ping; then
|
||||
bashio::log.blue \
|
||||
'-----------------------------------------------------------'
|
||||
bashio::log.blue " Add-on: $(bashio::addon.name)"
|
||||
bashio::log.blue " $(bashio::addon.description)"
|
||||
bashio::log.blue \
|
||||
'-----------------------------------------------------------'
|
||||
|
||||
bashio::log.blue " Add-on version: $(bashio::addon.version)"
|
||||
if bashio::var.true "$(bashio::addon.update_available)"; then
|
||||
bashio::log.magenta ' There is an update available for this add-on!'
|
||||
bashio::log.magenta \
|
||||
" Latest add-on version: $(bashio::addon.version_latest)"
|
||||
bashio::log.magenta ' Please consider upgrading as soon as possible.'
|
||||
else
|
||||
bashio::log.green ' You are running the latest version of this add-on.'
|
||||
fi
|
||||
|
||||
bashio::log.blue " System: $(bashio::info.operating_system)" \
|
||||
" ($(bashio::info.arch) / $(bashio::info.machine))"
|
||||
bashio::log.blue " Home Assistant Core: $(bashio::info.homeassistant)"
|
||||
bashio::log.blue " Home Assistant Supervisor: $(bashio::info.supervisor)"
|
||||
|
||||
bashio::log.blue \
|
||||
'-----------------------------------------------------------'
|
||||
bashio::log.blue \
|
||||
' Please, share the above information when looking for help'
|
||||
bashio::log.blue \
|
||||
' or support in, e.g., GitHub, forums or the Discord chat.'
|
||||
bashio::log.green \
|
||||
' https://github.com/alexbelgium/hassio-addons'
|
||||
bashio::log.blue \
|
||||
'-----------------------------------------------------------'
|
||||
fi
|
||||
|
||||
################
|
||||
# MODIFY IMAGE #
|
||||
################
|
||||
|
||||
#Sets caddyfile to 9925 as default port
|
||||
sed -i "s/80/9925/g" /app/Caddyfile
|
||||
|
||||
#######
|
||||
# SSL #
|
||||
#######
|
||||
|
||||
bashio::config.require.ssl
|
||||
if bashio::config.true 'ssl'; then
|
||||
bashio::log.info "Configuring ssl"
|
||||
CERTFILE=$(bashio::config 'certfile')
|
||||
KEYFILE=$(bashio::config 'keyfile')
|
||||
sed -i "7 i tls /ssl/$CERTFILE /ssl/$KEYFILE" /app/Caddyfile
|
||||
fi
|
||||
Reference in New Issue
Block a user