Alexandre
2023-05-04 11:43:07 +02:00
parent 5a833c3844
commit 811cf19273
3 changed files with 5 additions and 7 deletions

View File

@@ -9,12 +9,11 @@ server {
location / {
add_header Access-Control-Allow-Origin *;
proxy_read_timeout 30;
proxy_pass http://backend%%ingress_entry%%;
proxy_pass http://backend;
# Correct url for images
sub_filter_once off;
sub_filter_types *;
sub_filter %%ingress_entry_modified%%/ /;
sub_filter %%ingress_entry%%/ /;
sub_filter %%ingress_entry_modified%% %%ingress_entry%%;
}
}

View File

@@ -10,14 +10,13 @@ server {
location / {
add_header Access-Control-Allow-Origin *;
proxy_read_timeout 30;
proxy_pass http://backend%%ingress_entry%%;
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%%/ /;
sub_filter %%ingress_entry%%/ / ;
sub_filter %%ingress_entry_modified%% %%ingress_entry%%;
}