Commit 5bf021e5 authored by Lückemeyer's avatar Lückemeyer
Browse files

Update nginx.conf to cache only tasks and independent of host

parent c17e6cd7
Pipeline #9072 passed with stage
...@@ -6,11 +6,6 @@ events { ...@@ -6,11 +6,6 @@ events {
} }
http { http {
# include conf/mime.types;
# include /etc/nginx/proxy.conf;
# include /etc/nginx/fastcgi.conf;
# index index.html index.htm index.php;
default_type application/octet-stream; default_type application/octet-stream;
sendfile on; sendfile on;
tcp_nopush on; tcp_nopush on;
...@@ -21,15 +16,19 @@ http { ...@@ -21,15 +16,19 @@ http {
server { server {
listen 8080; listen 8080;
location / { location /v1/task {
proxy_cache dta_cache; proxy_cache dta_cache;
proxy_cache_background_update on; proxy_cache_background_update on;
proxy_cache_lock on; proxy_cache_lock on;
proxy_cache_key "$scheme$host$request_uri"; proxy_cache_key "$scheme$request_uri";
proxy_cache_valid 200 302 1d; proxy_cache_valid 200 302 1d;
proxy_cache_methods GET HEAD POST; proxy_cache_methods GET HEAD POST;
proxy_pass http://backendcomposedtt:8080/; proxy_pass http://backendcomposedtt:8080/v1/task;
}
location /v1/unittest {
proxy_pass http://backendcomposedtt:8080/v1/unittest;
} }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment