mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
test
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
upstream backend {
|
||||
server 127.0.0.1:5000;
|
||||
server 127.0.0.1:5001;
|
||||
}
|
||||
|
||||
@@ -9,13 +9,12 @@ server {
|
||||
location / {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_read_timeout 30;
|
||||
proxy_pass http://backend;
|
||||
#Allow frame
|
||||
proxy_hide_header 'x-frame-options';
|
||||
# Correct url for images
|
||||
sub_filter_once off;
|
||||
sub_filter_types *;
|
||||
sub_filter %%ingress_entry_modified%% %%ingress_entry%%;
|
||||
proxy_pass http://backend%%ingress_entry%%;
|
||||
# Correct url for images
|
||||
sub_filter_once off;
|
||||
sub_filter_types *;
|
||||
sub_filter %%ingress_entry_modified%%/ /;
|
||||
sub_filter %%ingress_entry%%/ /;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
24
whoogle/rootfs/etc/nginx/servers/nginx.conf
Normal file
24
whoogle/rootfs/etc/nginx/servers/nginx.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
server {
|
||||
|
||||
listen 5000;
|
||||
|
||||
include /etc/nginx/includes/server_params.conf;
|
||||
include /etc/nginx/includes/proxy_params.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_read_timeout 30;
|
||||
proxy_pass http://backend%%ingress_entry%%;
|
||||
#Allow frame
|
||||
proxy_hide_header 'x-frame-options';
|
||||
# Correct url for images
|
||||
sub_filter_once off;
|
||||
sub_filter_types *;
|
||||
sub_filter %%ingress_entry_modified%%/ /;
|
||||
sub_filter %%ingress_entry%%/ / ;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user