This commit is contained in:
Alexandre
2023-05-04 11:13:17 +02:00
parent b0e5d0ff08
commit ee859e0f8c
5 changed files with 38 additions and 9 deletions

View File

@@ -1,4 +1,7 @@
- Fix missing images in direct access
### 0.8.2-3 (03-05-2023)
- Minor bugs fixed
- Fix missing images in ingress

View File

@@ -54,6 +54,9 @@
"/dev/nvme1",
"/dev/nvme2"
],
"environment": {
"EXPOSE_PORT": "5001"
},
"image": "ghcr.io/alexbelgium/whoogle-search-{arch}",
"ingress": true,
"ingress_stream": true,
@@ -108,5 +111,5 @@
},
"slug": "whoogle-search",
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/whoogle",
"version": "0.8.2-3"
"version": "0.8.2-test3"
}

View File

@@ -1,3 +1,3 @@
upstream backend {
server 127.0.0.1:5000;
server 127.0.0.1:5001;
}

View File

@@ -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%%/ /;
}
}

View 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%%/ / ;
}
}