Skip to content

Instantly share code, notes, and snippets.

@maconbot
Forked from svx/readme
Last active August 29, 2015 00:18
Show Gist options
  • Save maconbot/cdaddd8c0acb67559c69 to your computer and use it in GitHub Desktop.
Save maconbot/cdaddd8c0acb67559c69 to your computer and use it in GitHub Desktop.
OpenVZ Gitlab template
This is a short readme on how to use the template. I'll create a detailed readme later, but for the moment I guess this should be fine.
Information
###########
Based on Debian 6.0.5 minimal AMD64
Gitlab 2.8 Stable
Additional packages: bash-completion, nano, fail2ban (preconfigured to block SSH hack attemps)
Installation
############
After creating a new container with the template, please follow these steps.
1. It's smart to copy your public key to the container, so you can login without a password. e.g. ssh-copy-id -i .ssh/id_rsa.pub root@yourcontainer
2. Login to the container. If it worked without a password, run: passwd -l root to disable the root's password (secure)
3. replace /etc/ssh/sshd_config with /etc/ssh/sshd_config.secure and restart ssh (/etc/init.d/ssh restart)
-> You should now have a more or less secure system!
4. dpkg-reconfigure locales
5. dpkg-reconfigure tzdata
-> optional but recommended
6. edit /etc/mailname to fit your hostname
7. edit /etc/hostname to fit your hostname
8. edit /etc/postfix/main.cf -> mydestination to fit your hostname
-> within all files, you just have to replace "gitlab.rackster-server.ch"
9. change server_name in /etc/nginx/nginx.conf
-> replace "gitlab.rackster-server.ch"
10. change web and email configs in /home/gitlab/gitlab/config/gitlab.yml
-> internal settings for Gitlab
11. restart nginx (/etc/init.d/nginx restart)
12. restart gitlab (/etc/init.d/gitlab restart)
13. restart postfix (/etc/init.d/postfix restart)
-> everything should now be running fine!
Credentials
###########
Default credentials used within the template. You should change at least the SSH passwords, or disable passwords with passwd -l (root/gitlab_installer). MySQL is more or less safe, as it only listens on localhost.
SSH
User: root
Password: iecohGah8ahy2aij2yaifashei3aiy
User: gitlab_installer
Password: aid0oozu6choh3chai5ohSei8laiGo
MySQL
User: root
Password: hahXooduuch6ma1eeR9Oloh4ba0eel
User: gitlab
Password: Howitie2aiz2ieleidoF3quohxaPh9
Gitlab
User: [email protected]
Password: 5iveL!fe
Download
########
http://web.beta.rackster-server.ch/downloads/gitlab-2.8.tar.gz
Feedbacks are highly appreciated!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment