nginx fix

trunk
HeNine 3 years ago
parent 61c69db72f
commit 0e9bf87d61

@ -23,7 +23,7 @@ function query(text, start_time, end_time) {
query_string += "&limit=30"; query_string += "&limit=30";
fetch(`http://localhost:8010/buscribe/json?${query_string}`) fetch(`/buscribelrr/json?${query_string}`)
.then(response => response.json()) .then(response => response.json())
// .then(response => console.log(response.error())) // .then(response => console.log(response.error()))
.then(fillResults) .then(fillResults)

@ -1,4 +1,4 @@
version: 3 version: "3"
services: services:
buscribenginx: buscribenginx:
image: buscribe-web:0.0.0 image: buscribe-web:0.0.0

@ -27,7 +27,7 @@ http {
keepalive_timeout 65; keepalive_timeout 65;
gzip on; gzip on;
gzip gzip_comp_level 9; gzip_comp_level 9;
absolute_redirect off; absolute_redirect off;
@ -38,14 +38,15 @@ http {
#access_log /var/log/nginx/host.access.log main; #access_log /var/log/nginx/host.access.log main;
location / { location / { proxy_pass http://nginx; }
root /usr/share/nginx/html; location /buscribelrr {
alias /usr/share/nginx/html/buscribe;
}
location /buscribe {
root /usr/share/nginx/html/buscribe;
index index.html index.htm; index index.html index.htm;
} }
location /buscribelrr/json { proxy_pass http://buscribeapilrr/buscribe/json; }
location / { proxy_pass http://nginx; }
location /buscribelrr { proxy_pass http://buscribeapilrr; }
} }

Loading…
Cancel
Save