mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
test
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
|
- Fix missing images in direct access
|
||||||
|
|
||||||
### 0.8.2-3 (03-05-2023)
|
### 0.8.2-3 (03-05-2023)
|
||||||
|
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
- Fix missing images in ingress
|
- Fix missing images in ingress
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,9 @@
|
|||||||
"/dev/nvme1",
|
"/dev/nvme1",
|
||||||
"/dev/nvme2"
|
"/dev/nvme2"
|
||||||
],
|
],
|
||||||
|
"environment": {
|
||||||
|
"EXPOSE_PORT": "5001"
|
||||||
|
},
|
||||||
"image": "ghcr.io/alexbelgium/whoogle-search-{arch}",
|
"image": "ghcr.io/alexbelgium/whoogle-search-{arch}",
|
||||||
"ingress": true,
|
"ingress": true,
|
||||||
"ingress_stream": true,
|
"ingress_stream": true,
|
||||||
@@ -108,5 +111,5 @@
|
|||||||
},
|
},
|
||||||
"slug": "whoogle-search",
|
"slug": "whoogle-search",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/whoogle",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/whoogle",
|
||||||
"version": "0.8.2-3"
|
"version": "0.8.2-test3"
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
upstream backend {
|
upstream backend {
|
||||||
server 127.0.0.1:5000;
|
server 127.0.0.1:5001;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,13 +9,12 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
proxy_read_timeout 30;
|
proxy_read_timeout 30;
|
||||||
proxy_pass http://backend;
|
proxy_pass http://backend%%ingress_entry%%;
|
||||||
#Allow frame
|
# Correct url for images
|
||||||
proxy_hide_header 'x-frame-options';
|
sub_filter_once off;
|
||||||
# Correct url for images
|
sub_filter_types *;
|
||||||
sub_filter_once off;
|
sub_filter %%ingress_entry_modified%%/ /;
|
||||||
sub_filter_types *;
|
sub_filter %%ingress_entry%%/ /;
|
||||||
sub_filter %%ingress_entry_modified%% %%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