File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ sudo chown git:git /home/git/share/gitolite/hooks/common/post-receive
81
81
# Set the first occurrence of host in the Gitlab config to the publicly available domain name
82
82
sudo sed -i ' 0,/host/s/localhost/' ` wget -qO- http://instance-data/latest/meta-data/public-hostname` ' /' /home/gitlab/gitlab/config/gitlab.yml
83
83
84
+ # Tighten security
85
+ sudo -u git chmod 750 /home/git/gitolite
86
+ sudo -u gitlab chmod 660 /home/gitlab/gitlab/config/* .yml
87
+
84
88
# Install and configure Nginx
85
89
sudo apt-get install -y nginx
86
90
sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/nginx/gitlab -P /etc/nginx/sites-available/
@@ -135,4 +139,4 @@ echo '5iveL!fe'
135
139
136
140
# Monitoring commands for the web server:
137
141
# sudo tail -f /var/log/nginx/access.log
138
- # sudo tail -f /var/log/nginx/error.log
142
+ # sudo tail -f /var/log/nginx/error.log
You can’t perform that action at this time.
0 commit comments