Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6925171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:45:19+00:00 2026-05-27T10:45:19+00:00

I want to have a local Gitorious installation that cannot be accessed outside of

  • 0

I want to have a local Gitorious installation that cannot be accessed outside of my local network, and is as secure and private as possible. The repos will be holding code I need kept private and secure in case of hacking or theft.

I’m not an expert with Linux, and certainly not an expert with git/gitorious, so any tips for improving my installation described below would be most helpful!

I have:

  • Installed Gitorious on a local machine running Ubuntu Server 11.04 64-bit, with an encrypted LVM.
  • Used this guide for Gitorious installation, if anyone is curious.
  • Modified Gitorious to support local IPs as hostnames.
  • In gitorious.yml:
    • host fields are a local IP (e.g. 192.168.xxx.xxx)
    • public_mode: false
    • only_site_admins_can_create_profiles: true
    • hide_http_clone_urls: true
  • git-daemon was installed, but is now removed.
  • No ports forwarded by internet facing router to machine.

Both git:// based and http:// based requests would normally allow open cloning of repos. Removing git-daemon and setting hide_http_clone_urls to false seems to have disabled both. They both deliver errors now when I attempt to clone.

With an encrypted LVM the machine is secure in case of physical theft. Also, all cloned repos on other machines are kept on encrypted drives as well. I used a custom script on the encrypted LVM that fills the harddrive with porn in case of too many failed attempts.

My current concerns:

  • Is repo access through git:// and http:// fully disabled?
  • Are all avenues of repo access secured behind ssh now?
  • Is there a way to block all requests to the machine that don’t originate from within the local network, in case my router gets angry and seeks revenge against me?
  • Anything more I can do to encrypt or protect the repos in case something goes wrong?
  • How do I backup gitorious’s data? Just backup the MySQL database and repos directory?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:45:20+00:00Added an answer on May 27, 2026 at 10:45 am

    If your git-daemon is not running then no git:// access.
    hide_http_clone_urls does not disable http, it just does not show the link. To protect it from unauthorized access, you might want to block on apache/nginx all access to git.yourdomain.com.

    You can take a look at my debian package, that have many default configurations, better then the documentations available on the internet:

    https://gitorious.org/gitorious-for-debian/gitorious/

    the base folder is where all configurations is stored, like apache configs and others, there is also the shell scripts that make default users and other things, just explore the source tree.

    being more specific about the apache config, take a look here: https://gitorious.org/gitorious-for-debian/gitorious/blobs/master/base/debian/etc/apache2/sites-available/gitorious

    If, for example, you don’t add the git.yourserver.com alias, then no one should be able to git clone from http.

    You might also want to watch and support the private repositories feature that are planned, which will provide real, safe, control of who can see what.

    Also for the question about ssh, I can say that, yes, it’s safe and will only give access to who have a public key registered on your gitorious installation.

    About the requests question, you could take a look at apache allow, deny rules, where you can create something like:

    Deny from All
    Allow from 192.168.0
    

    For backup, you have to backup your repository folder and mysql databases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a local SQL Server Express database that I want to copy to
I have a local Mercurial repository that is up-to-date. I want to retrieve an
I have the local file path as c:\new folder\pdf\today\k.pdf I want to replace the
If you want to develop against WordPress (i.e., have a local instance running on
I have SharePoint with the local intranet link as http://shserver/Sites/LAPP/HR/LA . I want to
I want to have a select-only ComboBox that provides a list of items for
I want to have a text box that the user can type in that
I have a local mercurial repository with 5 commits that still need to be
I have a local repository that is a full copy of a repository on
I have git repository (powered by gitosis) on my local ubuntu server I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.