Update nginx; add vim

This commit is contained in:
Fredrik Baberg 2022-09-27 00:32:21 +02:00
parent 10d21e62cc
commit 66abb15a03
4 changed files with 8 additions and 5 deletions

View File

@ -24,6 +24,8 @@ RUN apt update && \
# dfu-util \ # dfu-util \
# dfu-programmer \ # dfu-programmer \
# stm32flash \ # stm32flash \
# Development/testing
vim \
&& \ && \
apt clean apt clean

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint" name: "3DPrinter-OctoPrint"
version: "2022.9.007" version: "2022.9.008"
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"

View File

@ -14,7 +14,8 @@ worker_processes 1;
pcre_jit on; pcre_jit on;
# Write error log to the add-on log. # Write error log to the add-on log.
error_log /proc/1/fd/1 error; # error_log /proc/1/fd/1 error;
error_log /var/log/nginx/error.log debug;
# Max num of simultaneous connections by a worker process. # Max num of simultaneous connections by a worker process.
events { events {

View File

@ -11,12 +11,12 @@ server {
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 172.30.32.2; # Intentional, for autologin. proxy_set_header X-Forwarded-For 172.30.32.2; # Intentional, for autologin.
proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Script-Name {{ .ingress_entry }}; proxy_set_header X-Script-Name {{ .ingress_entry }};
proxy_http_version 1.1; proxy_http_version 1.1;
client_max_body_size 0; client_max_body_size 0;
} }