Permalink
Browse files

install and configure nginx to run GitLabHQ

  • Loading branch information...
1 parent 809624a commit c5ffa2a471f8950da9f8dac1389ac4d6935152f5 @tdm00 tdm00 committed Dec 15, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 ubuntu_nginx.sh
View
@@ -0,0 +1,20 @@
+# Installing nginx
+sudo gem install passenger
+sudo passenger-install-nginx-module
+
+# Create nginx system account to run server
+sudo adduser --system --no-create-home --disabled-login --disabled-password --group nginx
+
+# Configure nginx to auto-start with the server
+sudo wget -O init-deb.sh http://library.linode.com/assets/660-init-deb.sh
+sudo mv init-deb.sh /etc/init.d/nginx
+sudo chmod +x /etc/init.d/nginx
+sudo /usr/sbin/update-rc.d -f nginx defaults
+
+# Configure nginx server
+sudo nano /opt/nginx/conf/nginx.conf
+
+# Start nginx server
+sudo /etc/init.d/nginx start
+
+

0 comments on commit c5ffa2a

Please sign in to comment.