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
9645ecb1
Commit
9645ecb1
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Removed apt cacher ng setup (refs
#20417
).
parent
84e9ec45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
2.Common_services/5.Nginx/vhost_skyreach.conf
+1
-1
1 addition, 1 deletion
2.Common_services/5.Nginx/vhost_skyreach.conf
6.CampusManager/1.Install_CampusManager/0_setup.sh
+0
-28
0 additions, 28 deletions
6.CampusManager/1.Install_CampusManager/0_setup.sh
with
1 addition
and
29 deletions
2.Common_services/5.Nginx/vhost_skyreach.conf
+
1
−
1
View file @
9645ecb1
...
@@ -52,7 +52,7 @@ server {
...
@@ -52,7 +52,7 @@ server {
}
}
# APT proxy
# APT proxy
location
/
apt
{
location
/
apt
{
location
~ ^/
apt
/(
http
|
https
)/([\
w
\.\-\
_
]+.
ubuntu
.
com
/
ubuntu
|
ftp
.
debian
.
org
/
debian
|
mozilla
.
debian
.
net
|
panel
.
ubicast
.
eu
/
packaging
/
apt
)/(.*)$ {
location
~ ^/
apt
/(
http
|
https
)/([\
w
\.\-\
_
]+.
ubuntu
.
com
/
ubuntu
|
ftp
.
debian
.
org
/
debian
|
mozilla
.
debian
.
net
|
panel
.
ubicast
.
eu
)/(.*)$ {
resolver
127
.
0
.
0
.
1
;
resolver
127
.
0
.
0
.
1
;
proxy_pass
$
1
://$
2
/$
3
;
proxy_pass
$
1
://$
2
/$
3
;
proxy_cache
uc
-
apt
-
cache
;
proxy_cache
uc
-
apt
-
cache
;
...
...
This diff is collapsed.
Click to expand it.
6.CampusManager/1.Install_CampusManager/0_setup.sh
+
0
−
28
View file @
9645ecb1
...
@@ -6,31 +6,3 @@ apt-get install -y campus-manager
...
@@ -6,31 +6,3 @@ apt-get install -y campus-manager
# configure nginx
# configure nginx
sed
-i
"s@server_name skyreach;@server_name
${
CM_SERVER_NAME
}
;@"
/etc/nginx/sites-available/skyreach.conf
sed
-i
"s@server_name skyreach;@server_name
${
CM_SERVER_NAME
}
;@"
/etc/nginx/sites-available/skyreach.conf
service nginx restart
service nginx restart
# install apt cacher
apt-get
install
-y
apt-cacher-ng
# secure it
if
(
!
rgrep
'AdminAuth: admin:'
/etc/apt-cacher-ng/security.conf
>
/dev/null
)
;
then
APT_CACHER_PWD
=
"
$(
pwgen 12
)
"
echo
"AdminAuth: admin:
${
APT_CACHER_PWD
}
"
>>
/etc/apt-cacher-ng/security.conf
service apt-cacher-ng restart
fi
# iptables rules for port 3142
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
iptables-persistent
iptables
-A
INPUT
-p
tcp
-s
localhost
--destination-port
3142
-j
ACCEPT
iptables
-A
INPUT
-p
tcp
--destination-port
3142
-j
DROP
iptables-save
# the save using "service" command fails on VM
if
(
rgrep
'14.04'
/etc/lsb-release
>
/dev/null
)
;
then
update-rc.d iptables-persistent
enable
service iptables-persistent save
||
true
else
update-rc.d netfilter-persistent
enable
service netfilter-persistent save
||
true
fi
LIG
=
$(
grep
-n
"^iface lo inet loopback"
/etc/network/interfaces |
awk
-F
":"
'{print$1}'
)
LIG
=
$((
${
LIG
}
+
1
))
sed
-i
"
${
LIG
}
i
\p
re-up iptables-restore < /etc/iptables/rules.v4"
/etc/network/interfaces
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