mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-28 16:51:44 +00:00
reverted from linuxserver to cedrixrouxel transmission
This commit is contained in:
1 parent
3e4ce81398
commit
cd923ba39f
28 files changed
+121
-213
No files matched your search
File renamed without changes.
+57
-5
@@ -1,7 +1,59 @@
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
ARG BUILD_FROM=hassioaddons/base:8.0.1
|
||||
# hadolint ignore=DL3006
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
# MOFIFY DATA PATH
|
||||
RUN sed -i "s|config|data|g" /etc/services.d/transmission/run
|
||||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
||||
VOLUME [ "/data" ]
|
||||
# Setup base
|
||||
RUN apk add --no-cache \
|
||||
coreutils \
|
||||
nginx \
|
||||
transmission-daemon \
|
||||
openvpn
|
||||
# Small hack needed for ingress support
|
||||
#
|
||||
# Transmission always uses "transmission" as a subdirectory in the URL, so the web interface can for instance be found at:
|
||||
#
|
||||
# http://<server>/transmission/web/
|
||||
#
|
||||
# The same goes for the RPC API, which is exposed under /transmission/rpc. When using ingress, this is not the case however
|
||||
# and "transmission" directory is not part of the URL. So transmission is basically served under the root (/), e.g.:
|
||||
#
|
||||
# http://10.0.10.110:8123/api/hassio_ingress/rQEi5X4zJFTmZ82ghplDjsx2AoK3r2lqx0zZHHjZ69Q/
|
||||
#
|
||||
# As the web UI uses a relative path when resolving the RPC endpoint, it basically becomes:
|
||||
#
|
||||
# http://10.0.10.110:8123/api/hassio_ingress/rQEi5X4zJFTmZ82ghplDjsx2AoK3r2lqx0zZHHjZ69Q/../rpc
|
||||
#
|
||||
# which obviously is:
|
||||
#
|
||||
# http://10.0.10.110:8123/api/hassio_ingress
|
||||
#
|
||||
# This will not work. The sed statement below changes the way the RPC endpoint is determined by keeping the regular endpoint
|
||||
# when accessing transmission as usual, but stripping the relative part when using ingress.
|
||||
RUN sed -i 's|'"'"'\.\./rpc'"'"'|window.location.pathname.endsWith("/web/") ? "../rpc" : "rpc"|' /usr/share/transmission/web/javascript/remote.js
|
||||
|
||||
# Build arugments
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_VERSION
|
||||
|
||||
# Labels
|
||||
LABEL \
|
||||
io.hass.name="Transmission" \
|
||||
io.hass.description="The torrent client for Hass.io with OpenVPN support" \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="Pierrick Rouxel <pierrickrouxel@addons.community>" \
|
||||
org.label-schema.description="The torrent client for Hass.io" \
|
||||
org.label-schema.build-date=${BUILD_DATE} \
|
||||
org.label-schema.name="Transmission" \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.url="https://github.com/pierrickrouxel" \
|
||||
org.label-schema.usage="https://github.com/pierrickrouxel/hassio-addon-transmission/tree/master/README.md" \
|
||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||
org.label-schema.vcs-url="https://github.com/pierrickrouxel" \
|
||||
org.label-schema.vendor="Community Hass.io Addons"
|
||||
@@ -1,27 +0,0 @@
|
||||
# Hassio Add-ons by alexbelgium: Transmission
|
||||
|
||||
## About
|
||||
|
||||
[Transmission](https://github.com/linuxserver/Transmission) - a torrent client.
|
||||
|
||||
This addon is based on the [docker image](https://github.com/linuxserver/transmission) from linuxserver.io.
|
||||
|
||||
## 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
|
||||
|
||||
Webui can be found at `<your-ip>:9091`.
|
||||
|
||||
|
||||
[repository]: https://github.com/petersendev/hassio-addons
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"build_from": {
|
||||
"armv7": "linuxserver/transmission:arm32v7-3.00-r0-ls69",
|
||||
"armhf": "linuxserver/transmission:arm32v7-3.00-r0-ls69",
|
||||
"aarch64": "linuxserver/code-server:arm64v8-3.00-r0-ls69",
|
||||
"amd64": "linuxserver/code-server:amd64-3.00-r0-ls69"
|
||||
},
|
||||
"squash": false,
|
||||
"build_from": {
|
||||
"aarch64": "hassioaddons/base-aarch64:8.0.1",
|
||||
"amd64": "hassioaddons/base-amd64:8.0.1",
|
||||
"armhf": "hassioaddons/base-armhf:8.0.1",
|
||||
"armv7": "hassioaddons/base-armv7:8.0.1",
|
||||
"i386": "hassioaddons/base-i386:8.0.1"
|
||||
},
|
||||
"args": {}
|
||||
}
|
||||
|
||||
+57
-37
@@ -1,47 +1,67 @@
|
||||
{
|
||||
"name": "Transmission_2",
|
||||
"version": "3.00-r0-ls69",
|
||||
"slug": "transmission_2",
|
||||
"description": "The torrent client for Hass.io",
|
||||
"url": "https://hub.docker.com/alexbelgium/transmission",
|
||||
"startup": "services",
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armv7",
|
||||
"armhf"
|
||||
],
|
||||
"name": "Transmission NAS",
|
||||
"version": "1.2",
|
||||
"slug": "transmission",
|
||||
"description": "The torrent client for Hass.io with OpenVPN support",
|
||||
"url": "https://github.com/pierrickrouxel/hassio-addon-transmission",
|
||||
"webui": "http://[HOST]:[PORT:9091]/transmission/web/",
|
||||
"startup": "services",
|
||||
"ingress": "true",
|
||||
"ingress_port": 8099,
|
||||
"panel_icon": "mdi:progress-download",
|
||||
"panel_title": "Transmission",
|
||||
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
|
||||
"map": [
|
||||
"config:rw",
|
||||
"share:rw",
|
||||
"media:rw",
|
||||
"ssl"
|
||||
],
|
||||
"boot": "auto",
|
||||
"ports": {
|
||||
"9091/tcp": 9091,
|
||||
"9091/tcp": null,
|
||||
"51413/tcp": 51413,
|
||||
"51413/udp": 51413
|
||||
},
|
||||
"ports_description": {
|
||||
"9091/tcp": "Web UI port",
|
||||
"9091/tcp": "Web UI port (Not required for Hass.io Ingress)",
|
||||
"51413/tcp": "Peer port (setup port forwarding to this port)",
|
||||
"51413/udp": "Peer port (setup port forwarding to this port)"
|
||||
},
|
||||
"map": [
|
||||
"config:rw",
|
||||
"share:rw",
|
||||
"media:rw",
|
||||
"ssl"
|
||||
],
|
||||
"webui": "http://[HOST]:[PORT:8099]",
|
||||
"boot": "auto",
|
||||
"environment": {
|
||||
"PUID": 0,
|
||||
"PGID": 0
|
||||
},
|
||||
"options": {
|
||||
"PUID": 0,
|
||||
"PGID": 0,
|
||||
"TRANSMISSION_WEB_HOME": "/combustion-release/"
|
||||
},
|
||||
"schema": {
|
||||
"PUID": "int",
|
||||
"PGID": "int",
|
||||
"TRANSMISSION_WEB_HOME": "str?",
|
||||
"TZ": "str?"
|
||||
"privileged": [
|
||||
"NET_ADMIN"
|
||||
],
|
||||
"devices": [
|
||||
"/dev/net/tun:/dev/net/tun:rwm"
|
||||
],
|
||||
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
|
||||
"full_access": true,
|
||||
"hassio_api": true,
|
||||
"homeassistant_api": false,
|
||||
"host_network": false,
|
||||
"options": {
|
||||
"log_level": "info",
|
||||
"authentication_required": false,
|
||||
"username": "",
|
||||
"password": "",
|
||||
"localdisks": ["sda1"],
|
||||
"openvpn_enabled": false,
|
||||
"openvpn_config": "",
|
||||
"openvpn_username": "",
|
||||
"openvpn_password": ""
|
||||
},
|
||||
"schema": {
|
||||
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)",
|
||||
"authentication_required": "bool",
|
||||
"username": "str",
|
||||
"password": "str",
|
||||
"localdisks": ["str"],
|
||||
"openvpn_enabled": "bool",
|
||||
"openvpn_config": "str",
|
||||
"openvpn_username": "str",
|
||||
"openvpn_password": "str"
|
||||
},
|
||||
"environment": {
|
||||
"LOG_FORMAT": "{LEVEL}: {MESSAGE}"
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,59 +0,0 @@
|
||||
ARG BUILD_FROM=hassioaddons/base:8.0.1
|
||||
# hadolint ignore=DL3006
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
||||
# Setup base
|
||||
RUN apk add --no-cache \
|
||||
coreutils \
|
||||
nginx \
|
||||
transmission-daemon \
|
||||
openvpn
|
||||
# Small hack needed for ingress support
|
||||
#
|
||||
# Transmission always uses "transmission" as a subdirectory in the URL, so the web interface can for instance be found at:
|
||||
#
|
||||
# http://<server>/transmission/web/
|
||||
#
|
||||
# The same goes for the RPC API, which is exposed under /transmission/rpc. When using ingress, this is not the case however
|
||||
# and "transmission" directory is not part of the URL. So transmission is basically served under the root (/), e.g.:
|
||||
#
|
||||
# http://10.0.10.110:8123/api/hassio_ingress/rQEi5X4zJFTmZ82ghplDjsx2AoK3r2lqx0zZHHjZ69Q/
|
||||
#
|
||||
# As the web UI uses a relative path when resolving the RPC endpoint, it basically becomes:
|
||||
#
|
||||
# http://10.0.10.110:8123/api/hassio_ingress/rQEi5X4zJFTmZ82ghplDjsx2AoK3r2lqx0zZHHjZ69Q/../rpc
|
||||
#
|
||||
# which obviously is:
|
||||
#
|
||||
# http://10.0.10.110:8123/api/hassio_ingress
|
||||
#
|
||||
# This will not work. The sed statement below changes the way the RPC endpoint is determined by keeping the regular endpoint
|
||||
# when accessing transmission as usual, but stripping the relative part when using ingress.
|
||||
RUN sed -i 's|'"'"'\.\./rpc'"'"'|window.location.pathname.endsWith("/web/") ? "../rpc" : "rpc"|' /usr/share/transmission/web/javascript/remote.js
|
||||
|
||||
# Build arugments
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_VERSION
|
||||
|
||||
# Labels
|
||||
LABEL \
|
||||
io.hass.name="Transmission" \
|
||||
io.hass.description="The torrent client for Hass.io with OpenVPN support" \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="Pierrick Rouxel <pierrickrouxel@addons.community>" \
|
||||
org.label-schema.description="The torrent client for Hass.io" \
|
||||
org.label-schema.build-date=${BUILD_DATE} \
|
||||
org.label-schema.name="Transmission" \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.url="https://github.com/pierrickrouxel" \
|
||||
org.label-schema.usage="https://github.com/pierrickrouxel/hassio-addon-transmission/tree/master/README.md" \
|
||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||
org.label-schema.vcs-url="https://github.com/pierrickrouxel" \
|
||||
org.label-schema.vendor="Community Hass.io Addons"
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"squash": false,
|
||||
"build_from": {
|
||||
"aarch64": "hassioaddons/base-aarch64:8.0.1",
|
||||
"amd64": "hassioaddons/base-amd64:8.0.1",
|
||||
"armhf": "hassioaddons/base-armhf:8.0.1",
|
||||
"armv7": "hassioaddons/base-armv7:8.0.1",
|
||||
"i386": "hassioaddons/base-i386:8.0.1"
|
||||
},
|
||||
"args": {}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
{
|
||||
"name": "Transmission NAS",
|
||||
"version": "1.2",
|
||||
"slug": "transmission_nas",
|
||||
"description": "The torrent client for Hass.io with OpenVPN support",
|
||||
"url": "https://github.com/pierrickrouxel/hassio-addon-transmission",
|
||||
"webui": "http://[HOST]:[PORT:9091]/transmission/web/",
|
||||
"startup": "services",
|
||||
"ingress": "true",
|
||||
"ingress_port": 8099,
|
||||
"panel_icon": "mdi:progress-download",
|
||||
"panel_title": "Transmission",
|
||||
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
|
||||
"map": [
|
||||
"config:rw",
|
||||
"share:rw",
|
||||
"media:rw",
|
||||
"ssl"
|
||||
],
|
||||
"boot": "auto",
|
||||
"ports": {
|
||||
"9091/tcp": null,
|
||||
"51413/tcp": 51413,
|
||||
"51413/udp": 51413
|
||||
},
|
||||
"ports_description": {
|
||||
"9091/tcp": "Web UI port (Not required for Hass.io Ingress)",
|
||||
"51413/tcp": "Peer port (setup port forwarding to this port)",
|
||||
"51413/udp": "Peer port (setup port forwarding to this port)"
|
||||
},
|
||||
"privileged": [
|
||||
"NET_ADMIN"
|
||||
],
|
||||
"devices": [
|
||||
"/dev/net/tun:/dev/net/tun:rwm"
|
||||
],
|
||||
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
|
||||
"full_access": true,
|
||||
"hassio_api": true,
|
||||
"homeassistant_api": false,
|
||||
"host_network": false,
|
||||
"options": {
|
||||
"log_level": "info",
|
||||
"authentication_required": false,
|
||||
"username": "",
|
||||
"password": "",
|
||||
"localdisks": ["sda1"],
|
||||
"openvpn_enabled": false,
|
||||
"openvpn_config": "",
|
||||
"openvpn_username": "",
|
||||
"openvpn_password": ""
|
||||
},
|
||||
"schema": {
|
||||
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)",
|
||||
"authentication_required": "bool",
|
||||
"username": "str",
|
||||
"password": "str",
|
||||
"localdisks": ["str"],
|
||||
"openvpn_enabled": "bool",
|
||||
"openvpn_config": "str",
|
||||
"openvpn_username": "str",
|
||||
"openvpn_password": "str"
|
||||
},
|
||||
"environment": {
|
||||
"LOG_FORMAT": "{LEVEL}: {MESSAGE}"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
Reference in new issue
Block a user