diff --git a/conf/nginx.conf b/conf/nginx.conf index 033ed3f..cca8691 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -22,6 +22,10 @@ http { proxy_cache_path /var/cache/nginx keys_zone=owl_cache:20m inactive=24h; + upstream backend { + server owlboard-backend:8460; + } + server { listen 80; server_name localhost; @@ -40,7 +44,7 @@ http { } location /api/ { - proxy_pass http://backend:8460; + proxy_pass http://backend; proxy_cache_key $scheme://$host$uri$is_args$query_string; proxy_ignore_headers Cache-Control; proxy_cache_valid 200 2m; # Evaluate whether 2m or 1m is more appropriate @@ -49,7 +53,7 @@ http { } location /api/v1/list/ { - proxy_pass http://backend:8460; + proxy_pass http://backend; proxy_cache_key $scheme://$host$uri$is_args$query_string; proxy_ignore_headers Cache-Control; proxy_cache_valid 200 10080m; diff --git a/index.html b/index.html index f41e44a..6b0fb3d 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@ diff --git a/sw.js b/sw.js index fb47816..3095f77 100644 --- a/sw.js +++ b/sw.js @@ -1,6 +1,6 @@ /* Service Worker */ -const appVersion = "0.0.3" +const appVersion = "0.1.2-test" const cacheName = `owlboard-${appVersion}` const cacheIDs = [cacheName] const cacheFiles = [