Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
DTABackend
Commits
5bf021e5
Commit
5bf021e5
authored
Jan 29, 2024
by
Lückemeyer
Browse files
Update nginx.conf to cache only tasks and independent of host
parent
c17e6cd7
Pipeline
#9072
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
conf/nginx.conf
View file @
5bf021e5
...
@@ -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
;
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment