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
e6ec9205
Commit
e6ec9205
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Changed APT proxy in skyreach Nginx conf (refs
#20417
).
parent
e29f1a30
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
2.Common_services/5.Nginx/vhost_skyreach.conf
+25
-4
25 additions, 4 deletions
2.Common_services/5.Nginx/vhost_skyreach.conf
with
25 additions
and
4 deletions
2.Common_services/5.Nginx/vhost_skyreach.conf
+
25
−
4
View file @
e6ec9205
proxy_cache_path
/
tmp
/
nginx
-
uc
-
apt
-
cache
levels
=
1
:
2
keys_zone
=
uc
-
apt
-
cache
:
10
m
max_size
=
4
g
inactive
=
300
s
;
server
{
server
{
listen
80
;
listen
80
;
server_name
{{
server_name
}};
server_name
{{
server_name
}};
...
@@ -38,14 +40,33 @@ server {
...
@@ -38,14 +40,33 @@ server {
include
/
etc
/
nginx
/
uwsgi_params
;
include
/
etc
/
nginx
/
uwsgi_params
;
}
}
#
Ubuntu
#
Old APT proxy urls
location
/
fr
.
archive
.
ubuntu
.
com
/
ubuntu
{
location
/
fr
.
archive
.
ubuntu
.
com
/
ubuntu
{
proxy_pass
http
://
127
.
0
.
0
.
1
:
3142
;
rewrite
^/(.*)$ /
apt
/
http
/$
1
?
;
}
}
location
/
security
.
ubuntu
.
com
/
ubuntu
{
location
/
security
.
ubuntu
.
com
/
ubuntu
{
proxy_pass
http
://
127
.
0
.
0
.
1
:
3142
;
rewrite
^/(.*)$ /
apt
/
http
/$
1
?
;
}
}
location
/
old
-
releases
.
ubuntu
.
com
/
ubuntu
{
location
/
old
-
releases
.
ubuntu
.
com
/
ubuntu
{
proxy_pass
http
://
127
.
0
.
0
.
1
:
3142
;
rewrite
^/(.*)$ /
apt
/
http
/$
1
?;
}
# APT proxy
location
/
apt
{
location
~ ^/
apt
/(
http
|
https
)/([\
w
\.\-\
_
]+.
ubuntu
.
com
/
ubuntu
|
panel
.
ubicast
.
eu
/
packaging
/
apt
)/(.*)$ {
resolver
127
.
0
.
0
.
1
;
proxy_pass
$
1
://$
2
/$
3
;
proxy_cache
uc
-
apt
-
cache
;
# do not consider secure urls as new files
proxy_cache_key
$
scheme
$
proxy_host
$
uri
;
# only one request at a time will be allowed to populate a new cache element
proxy_cache_lock
on
;
# how long should the data be kept in the cache
proxy_cache_valid
200
7
d
;
# instruct browser to cache this
expires
7
d
;
# headers
proxy_ignore_headers
"Cache-Control"
"X-Accel-Expires"
"Expires"
;
add_header
X
-
Cache
$
upstream_cache_status
;
}
}
}
}
}
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