Update config

This commit is contained in:
Fredrik Baberg 2022-10-02 21:26:55 +02:00
parent 33009ca2b9
commit e802113c58
4 changed files with 12 additions and 10 deletions

View File

@ -9,4 +9,4 @@ labels:
org.opencontainers.image.description: "3DPrinter-OctoPrint addon for Home-Assistant." org.opencontainers.image.description: "3DPrinter-OctoPrint addon for Home-Assistant."
org.opencontainers.image.source: "https://github.com/fredrikbaberg/3dprinter-addons" org.opencontainers.image.source: "https://github.com/fredrikbaberg/3dprinter-addons"
args: args:
OCTOPRINT_VERSION: "1.8.3" OCTOPRINT_VERSION: "1.8.4"

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint" name: "3DPrinter-OctoPrint"
version: "2022.9.014" version: "2022.9.015"
slug: "3dprinter-octoprint" slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles." description: "OctoPrint as an addon, no additional bells and whistles."
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint" url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
@ -27,7 +27,7 @@ options:
camera_url: "http://b7aa59c4-camera-mjpg-streamer/" camera_url: "http://b7aa59c4-camera-mjpg-streamer/"
recovery: false recovery: false
schema: schema:
camera_url: "url" camera_url: "url?"
recovery: "bool" recovery: "bool"
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch} image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
tmpfs: true tmpfs: true

View File

@ -7,13 +7,13 @@ server {
location / { location / {
proxy_pass http://octoprint/; proxy_pass http://octoprint/;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade; # proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; # proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme; # proxy_set_header X-Scheme $scheme;
proxy_http_version 1.1; proxy_http_version 1.1;
client_max_body_size 0; client_max_body_size 0;
} }

View File

@ -7,10 +7,12 @@ server {
deny all; deny all;
proxy_pass http://octoprint/; proxy_pass http://octoprint/;
proxy_set_header Host $http_host; proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For 172.30.32.2;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Scheme $scheme; proxy_set_header X-Scheme $scheme;