Revert parts of nginx config
This commit is contained in:
parent
2b4c5c97c7
commit
8f7ca83438
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.7.012"
|
version: "2022.7.013"
|
||||||
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,4 +27,5 @@ options:
|
|||||||
recovery: false
|
recovery: false
|
||||||
schema:
|
schema:
|
||||||
recovery: "bool"
|
recovery: "bool"
|
||||||
|
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
|
||||||
tmpfs: true
|
tmpfs: true
|
||||||
|
|||||||
@ -1,29 +1,16 @@
|
|||||||
server {
|
server {
|
||||||
listen {{ .interface }}:{{ .port }} default_server;
|
listen {{ .interface }}:{{ .port }} default_server;
|
||||||
|
|
||||||
# include /etc/nginx/includes/server_params.conf;
|
include /etc/nginx/includes/server_params.conf;
|
||||||
# include /etc/nginx/includes/proxy_params.conf;
|
include /etc/nginx/includes/proxy_params.conf;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
allow 172.30.32.2;
|
allow 172.30.32.2;
|
||||||
deny all;
|
deny all;
|
||||||
|
|
||||||
proxy_pass http://backend/;
|
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_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;
|
proxy_set_header X-Forwarded-For 172.30.32.2;
|
||||||
add_header Origin 172.30.32.2;
|
proxy_set_header Origin 172.30.32.2;
|
||||||
|
|
||||||
# Required when mixing http and https?
|
|
||||||
add_header Access-Control-Allow-Origin *;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user