Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
edad032b
Commit
edad032b
authored
4 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
Increase cache limits | refs
#33416
parent
5b9b0452
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/mediacache/templates/mediacache.j2
+6
-2
6 additions, 2 deletions
ansible/roles/mediacache/templates/mediacache.j2
with
6 additions
and
2 deletions
ansible/roles/mediacache/templates/mediacache.j2
+
6
−
2
View file @
edad032b
proxy_cache_path {{ mediacache_folder }} levels=1:2 keys_zone=mediacache:10m max_size={{ mediacache_size }}g inactive=300s;
# Cache configuration
# Maximum retention of 30 days
# 4G of RAM for keys zone (one megabyte can store about 8 thousand keys)
# https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path
proxy_cache_path {{ mediacache_folder }} levels=1:2 keys_zone=mediacache:4000m max_size={{ mediacache_size }}g inactive=30d;
server {
listen 80 default_server;
...
...
@@ -64,7 +68,7 @@ server {
proxy_cache_lock on;
# how long should the data be kept in the cache
proxy_cache_valid 200
7
d;
proxy_cache_valid 200
30
d;
# instruct browser to cache this
expires 7d;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment