EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pypi cache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible-public
pypi cache
Commits
cae1e286
Commit
cae1e286
authored
1 month ago
by
Karl Grube
Browse files
Options
Downloads
Patches
Plain Diff
commented out stdout so that it works...
parent
6a51da34
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/pypi_site.j2
+2
-2
2 additions, 2 deletions
templates/pypi_site.j2
with
2 additions
and
2 deletions
templates/pypi_site.j2
+
2
−
2
View file @
cae1e286
...
...
@@ -2,12 +2,12 @@ log_format pypi_cache '$remote_addr - $host [$time_local] '
'request_time=$request_time upstream_time=$upstream_response_time '
'cache_status=$upstream_cache_status \t'
'$status "$request" $body_bytes_sent';
access_log /dev/stdout pypi_cache buffer=64k flush=1s;
#
access_log /dev/stdout pypi_cache buffer=64k flush=1s;
# Log to file, can be useful for dev
# access_log /var/log/nginx/cache.log pypi_cache buffer=64k flush=1s;
# Cache 50G worth of packages for up to 1 month
proxy_cache_path /var/
lib/nginx
/pypi levels=1:2 keys_zone=pypi:16m inactive=1M max_size=50G use_temp_path=off;
proxy_cache_path /var/
www
/pypi levels=1:2 keys_zone=pypi:16m inactive=1M max_size=50G use_temp_path=off;
# Having the same upstream server listed twice allegedly forces nginx to retry
# connections and not fail the request immediately.
...
...
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