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";
fetch(`http://localhost:8010/buscribe/json?${query_string}`)
fetch(`/buscribelrr/json?${query_string}`)
.then(response => response.json())
// .then(response => console.log(response.error()))
.then(fillResults)

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

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

Loading…
Cancel
Save