File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed
Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -55,22 +55,27 @@ http {
5555 gzip_proxied any;
5656
5757
58+ # Symlinks protection
59+ disable_symlinks if_not_owner;
60+
5861 # Proxy settings
5962 proxy_redirect off;
6063 proxy_set_header Host $host ;
6164 proxy_set_header X-Real-IP $remote_addr ;
6265 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
63- proxy_pass_header Set-Cookie;
66+ proxy_pass_header Set-Cookie;
6467 proxy_connect_timeout 90 ;
6568 proxy_send_timeout 90 ;
6669 proxy_read_timeout 90 ;
6770 proxy_buffers 32 4k ;
6871
72+
6973 # SSL PCI Compliance
7074 ssl_ciphers RC4:HIGH:!aNULL:!MD5:!kEDH;
7175 ssl_session_cache shared:SSL:10m ;
7276 ssl_prefer_server_ciphers on;
7377
78+
7479 # Error pages
7580 error_page 403 /error/403 .html;
7681 error_page 404 /error/404 .html;
Original file line number Diff line number Diff line change 212212# ----------------------------------------------------------#
213213# Let's start
214214echo -e " \n\n\n\nInstallation will take about 15 minutes ...\n"
215- sleep 2
215+ sleep 5
216216
217217# Update system
218218yum -y update
@@ -255,13 +255,23 @@ if [ ! -e '/etc/yum.repos.d/remi.repo' ]; then
255255 fi
256256fi
257257
258+ # Install nginx repo
259+ if [ ! -e ' /etc/yum.repos.d/nginx.repo' ]; then
260+ echo " [nginx]" > /etc/yum.repos.d/nginx.repo
261+ echo " name=nginx repo" >> /etc/yum.repos.d/nginx.repo
262+ echo " baseurl=http://nginx.org/packages/centos/$release /\$ basearch/" \
263+ >> /etc/yum.repos.d/nginx.repo
264+ echo " gpgcheck=0" >> /etc/yum.repos.d/nginx.repo
265+ echo " enabled=1" >> /etc/yum.repos.d/nginx.repo
266+ fi
267+
258268# Install vesta repo
259- echo " [vesta]
260- name=Vesta - $REPO
261- baseurl=http://$RHOST /$REPO /$release /\$ basearch/
262- enabled=1
263- gpgcheck=1
264- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VESTA" > $YUM_REPO
269+ echo " [vesta]" > $YUM_REPO
270+ echo " name=Vesta - $REPO " >> $YUM_REPO
271+ echo " baseurl=http://$RHOST /$REPO /$release /\$ basearch/" >> $YUM_REPO
272+ echo " enabled=1" >> $YUM_REPO
273+ echo " gpgcheck=1" >> $YUM_REPO
274+ echo " gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VESTA" > > $YUM_REPO
265275wget $CHOST /GPG.txt -O /etc/pki/rpm-gpg/RPM-GPG-KEY-VESTA
266276
267277
You can’t perform that action at this time.
0 commit comments