Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
cota-backend
Commits
5bf021e5
Commit
5bf021e5
authored
1 year ago
by
Lückemeyer
Browse files
Options
Download
Email Patches
Plain Diff
Update nginx.conf to cache only tasks and independent of host
parent
c17e6cd7
master
amg-dev-volumes
amg-svn+ssh
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conf/nginx.conf
+7
-8
conf/nginx.conf
with
7 additions
and
8 deletions
+7
-8
conf/nginx.conf
+
7
-
8
View file @
5bf021e5
...
...
@@ -6,11 +6,6 @@ events {
}
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
;
sendfile
on
;
tcp_nopush
on
;
...
...
@@ -21,15 +16,19 @@ http {
server
{
listen
8080
;
location
/
{
location
/
v1/task
{
proxy_cache
dta_cache
;
proxy_cache_background_update
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_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
;
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets