Revert parts of nginx config

This commit is contained in:
Fredrik Baberg 2022-07-11 18:45:00 +02:00
parent 2b4c5c97c7
commit 8f7ca83438
2 changed files with 5 additions and 17 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint"
version: "2022.7.012"
version: "2022.7.013"
slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles."
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
@ -27,4 +27,5 @@ options:
recovery: false
schema:
recovery: "bool"
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
tmpfs: true

View File

@ -1,29 +1,16 @@
server {
listen {{ .interface }}:{{ .port }} default_server;
# include /etc/nginx/includes/server_params.conf;
# include /etc/nginx/includes/proxy_params.conf;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
location / {
allow 172.30.32.2;
deny all;
proxy_pass http://backend/;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name {{ .ingress_entry }};
proxy_http_version 1.1;
client_max_body_size 0;
proxy_set_header X-Forwarded-For 172.30.32.2;
add_header Origin 172.30.32.2;
# Required when mixing http and https?
add_header Access-Control-Allow-Origin *;
proxy_set_header Origin 172.30.32.2;
}
}