Skip to content

Commit

Permalink
0nikola1 patch octoprint proxy (#89)
Browse files Browse the repository at this point in the history
* Update and rename config.json to config.yaml

* Update run.sh

* FIxed addon startup issue
  • Loading branch information
0nikola1 authored Dec 16, 2022
1 parent 184880a commit 5fff856
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
31 changes: 0 additions & 31 deletions octoprint-proxy/config.json

This file was deleted.

31 changes: 31 additions & 0 deletions octoprint-proxy/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: OctoPrint Proxy
version: 1.0.1
slug: octoprint_proxy
description: Access OctoPrint from within Home Assistant
url: https://github.com/MaxWinterstein/homeassistant-addons/
ingress: true
ingress_port: 80
panel_title: OctoPrint
panel_icon: mdi:printer-3d-nozzle
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
startup: application
boot: auto
init: false
options:
octoprint_host: octopi
octoprint_port: '443'
ssl:
enabled: true
verify: false
schema:
octoprint_host: str
octoprint_port: port
ssl:
enabled: bool
verify: bool
hassio_api: false
4 changes: 2 additions & 2 deletions octoprint-proxy/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bashio
#!/usr/bin/with-contenv bashio
set -e

bashio::log.info "Setting octoprint host: $(bashio::config octoprint_host)"
Expand Down Expand Up @@ -27,4 +27,4 @@ fi
bashio::log.info "Server line: $(cat /haproxy.cfg | grep 'server octoprint')"

bashio::log.info "Starting haproxy"
haproxy -W -db -f /haproxy.cfg
haproxy -W -db -f /haproxy.cfg

0 comments on commit 5fff856

Please sign in to comment.