Prepare for test on device
This commit is contained in:
parent
6cdff6ea0b
commit
5af6182cbd
@ -81,12 +81,14 @@ RUN apk add -U \
|
||||
opus \
|
||||
speexdsp \
|
||||
zlib \
|
||||
caddy
|
||||
caddy \
|
||||
vim \
|
||||
screen
|
||||
|
||||
COPY rootfs/ /
|
||||
|
||||
WORKDIR /
|
||||
|
||||
# # Make files executable
|
||||
# # RUN chmod +x /etc/cont-init.d/*.sh
|
||||
# # RUN chmod +x /etc/services.d/*/*
|
||||
# RUN chmod +x /etc/cont-init.d/*.sh
|
||||
# RUN chmod +x /etc/services.d/*/*
|
||||
|
||||
7
camera-ustreamer/build.yaml
Normal file
7
camera-ustreamer/build.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
labels:
|
||||
org.opencontainers.image.title: "Home Assistant Add-on: Camera-ustreamer"
|
||||
org.opencontainers.image.description: "ustreamer addon for Home-Assistant."
|
||||
org.opencontainers.image.source: "https://github.com/fredrikbaberg/ha-3dprinter-addons"
|
||||
args:
|
||||
JANUS_GATEWAY_VERSION: "1.1.3"
|
||||
USTREAMER_VERSION: "5.38"
|
||||
@ -1,12 +1,12 @@
|
||||
name: "Camera-mjpg-streamer"
|
||||
version: "2022.7.0"
|
||||
slug: "camera-mjpg-streamer"
|
||||
description: "Camera streaming addon for Home Assistant, based on mjpg-streamer."
|
||||
url: "https://github.com/fredrikbaberg/ha-3dprinter-addons/tree/main/camera-mjpg-streamer"
|
||||
name: "Camera-ustreamer"
|
||||
version: "2023.3.0-rc0"
|
||||
slug: "camera-ustreamer"
|
||||
description: "Camera streaming addon for Home Assistant, based on ustreamer."
|
||||
url: "https://github.com/fredrikbaberg/ha-3dprinter-addons/tree/main/camera-ustreamer"
|
||||
ingress: true
|
||||
ingress_stream: true
|
||||
panel_icon: mdi:camera
|
||||
panel_title: mjpg-streamer
|
||||
panel_title: ustreamer
|
||||
arch:
|
||||
- armv7
|
||||
- amd64
|
||||
@ -21,8 +21,8 @@ ports:
|
||||
80/tcp: null
|
||||
ports_description:
|
||||
80/tcp: Web-based interface (Not required for Ingress)
|
||||
options:
|
||||
mjpg_input: "input_uvc.so -n"
|
||||
schema:
|
||||
mjpg_input: "str"
|
||||
image: ghcr.io/fredrikbaberg/ha-addon-camera-mjpg-streamer-{arch}
|
||||
# options:
|
||||
# mjpg_input: "input_uvc.so -n"
|
||||
# schema:
|
||||
# mjpg_input: "str"
|
||||
# image: ghcr.io/fredrikbaberg/ha-addon-camera-ustreamer-{arch}
|
||||
|
||||
@ -1,12 +1,18 @@
|
||||
# Ingress
|
||||
:8099 {
|
||||
@blocked not remote_ip 172.30.32.2
|
||||
respond @blocked "This is only for access through Ingress" 403
|
||||
reverse_proxy 127.0.0.1:8080
|
||||
# @blocked not remote_ip 172.30.32.2
|
||||
# respond @blocked "This is only for access through Ingress" 403
|
||||
handle_path /janus/* {
|
||||
reverse_proxy localhost:8188 # Janus API
|
||||
}
|
||||
reverse_proxy 127.0.0.1:8080 # ustreamer
|
||||
}
|
||||
|
||||
# External access
|
||||
:8080 {
|
||||
root * /opt/janus/share/janus/demos
|
||||
file_server
|
||||
:80 {
|
||||
root * /opt/janus/share/janus/demos
|
||||
handle_path /janus/* {
|
||||
reverse_proxy localhost:8188 # Janus API
|
||||
}
|
||||
file_server # Janus demo
|
||||
}
|
||||
|
||||
@ -1,22 +1,22 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Add-on: aiortc
|
||||
# Configures NGINX for use with aiortc
|
||||
# ==============================================================================
|
||||
# #!/usr/bin/with-contenv bashio
|
||||
# # ==============================================================================
|
||||
# # Add-on: aiortc
|
||||
# # Configures NGINX for use with aiortc
|
||||
# # ==============================================================================
|
||||
|
||||
# Generate Ingress configuration
|
||||
bashio::var.json \
|
||||
interface "$(bashio::addon.ip_address)" \
|
||||
port "^$(bashio::addon.ingress_port)" \
|
||||
| tempio \
|
||||
-template /etc/nginx/templates/ingress.gtpl \
|
||||
-out /etc/nginx/servers/ingress.conf
|
||||
# # Generate Ingress configuration
|
||||
# bashio::var.json \
|
||||
# interface "$(bashio::addon.ip_address)" \
|
||||
# port "^$(bashio::addon.ingress_port)" \
|
||||
# | tempio \
|
||||
# -template /etc/nginx/templates/ingress.gtpl \
|
||||
# -out /etc/nginx/servers/ingress.conf
|
||||
|
||||
# Generate direct access configuration, if enabled.
|
||||
if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
||||
bashio::var.json \
|
||||
port "^$(bashio::addon.port 80)" \
|
||||
| tempio \
|
||||
-template /etc/nginx/templates/direct.gtpl \
|
||||
-out /etc/nginx/servers/direct.conf
|
||||
fi
|
||||
# # Generate direct access configuration, if enabled.
|
||||
# if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
||||
# bashio::var.json \
|
||||
# port "^$(bashio::addon.port 80)" \
|
||||
# | tempio \
|
||||
# -template /etc/nginx/templates/direct.gtpl \
|
||||
# -out /etc/nginx/servers/direct.conf
|
||||
# fi
|
||||
|
||||
@ -6,4 +6,4 @@
|
||||
|
||||
bashio::log.info "Starting janus.."
|
||||
|
||||
exec /opt/janus/bin/janus
|
||||
exec /opt/janus/bin/janus --configs-folder /opt/janus/etc/janus/ --plugins-folder /opt/janus/lib/janus/plugins/
|
||||
|
||||
@ -7,4 +7,4 @@
|
||||
bashio::log.info "Starting mjpg-streamer.."
|
||||
|
||||
# mjpg_streamer -i "$(bashio::config 'mjpg_input')" -o "output_http.so -w /www_mjpg -p 80"
|
||||
exec ustreamer --host=127.0.0.1 --port=80
|
||||
exec ustreamer --host=127.0.0.1 --h264-sink demo::ustreamer::h264 --h264-sink-mode 660 --h264-sink-rm
|
||||
Loading…
Reference in New Issue
Block a user