mercurial (Forum tag)http://www.turnkeylinux.org/forum/term/341/0/feed
en[SOLVED] apache2 SSL config for Mercurial on Redmine http://www.turnkeylinux.org/forum/general/20120928/apache2-ssl-config-mercurial-redmine
<p>I&#39;m smarter than I think, I guess, or not as dumb as I look.</p>
<p>in apache2/ports.conf added Listen 8081 to mod_ssl.c and mod_gnutls.c sections.</p>
<p>in mercurial/apache.conf added virtual host for *:8081</p>
<p>seems to work just fine!</p>
<p>&nbsp; &nbsp;Bo</p>
<p>---------------------</p>
<p>Has anyone configured apache to support SSL for Mercurial on the Redmine appliance? I&#39;m not at all clear on what needs to be done.&nbsp;</p>
<p>Thanks!</p>
<p>&nbsp; &nbsp;Bo</p>http://www.turnkeylinux.org/forum/general/20120928/apache2-ssl-config-mercurial-redmine#commentsGeneralapachemercurialssltklredmineFri, 28 Sep 2012 15:38:57 +0000bo4204 at http://www.turnkeylinux.orgRedmine appliance and Mercurial setup to enable SSH push (with MacHG)http://www.turnkeylinux.org/forum/support/20110130/redmine-appliance-and-mercurial-setup-enable-ssh-push-machg
<p>
Few days ago I downloaded the latest Redmine appliance and I was very happy to see all the improvements over the past version. I immediately started to use it with VMFusion on my Mac (yes, I use a Mac).</p>
<p>
I wanted to use Redmine and Mercurial to host my small dev projects and eventually put order in a messy development folder.</p>
<p>
Of course, the first thing I did has been to create a Mercurial repo for my project. I logged as root, I created the /srv/repos/hg/myproject/ folder and there initialized the mercurial repo with &quot;hg init&quot;. The repository was immediately available on the <a href="http://&lt;myserverip&gt;:8080/myproject/" title="http://&lt;myserverip&gt;:8080/myproject/" rel="nofollow">http://&lt;myserverip&gt;:8080/myproject/</a> folder.</p>
<p>
As I&#39;ve been a Mac user since 3 years now, I downloaded the cute MacHG free software to handle the connection to my redmine appliance and my local repositories. I then cloned the &quot;myproject&quot; repo locally and added the files of my project to it. I did a local commit and prepared to push the files back to my redmine appliance. With my surprise, I could not push and I got a message saying &quot;ssl required&quot;. 8-)</p>
<p>
After few days of tentatives and some intensive googling sessions, I found out a two possibilities to solve the problem: the dirty and the clean ways.</p>
<p>
The dirty way consisted in adding the following text</p>
<p>
&nbsp;</p>
<div id="cke_pastebin">
[web]</div>
<div id="cke_pastebin">
push_ssl=False</div>
<div id="cke_pastebin">
allow_push=*</div>
<p>
to the .hg/hgrc file in the turnkey instance, as also suggested <a href="http://www.turnkeylinux.org/forum/support/20101012/redmine-appliance-and-hg" rel="nofollow">here</a>. But this solution is totally insecure as it would allow everybody to clone and commit to your repository. Although the appliance is for my personal use, I care a lot about security and opening the doors to the entire world, even for my small repo, wasn&#39;t a pleasant thought.</p>
<p>
After some more browsing, I think I found a cleaner way to do it. This consisted in using SSH to access my repository. However, when I did it on MacHG, the repository seemed always unreachable. The reason I discovered was that in MacHG the SSH session could not be interactive (i.e. you cannot enter a password, although there&#39;s a field to enter the password in MacHG!).</p>
<p>
So I decided to make the SSH session automatic. This means that if I connect to my appliance with the following command:</p>
<p>
ssh &lt;myapplianceip&gt; -l root</p>
<p>
I should be able to enter without being asked for a password, but still keeping the security enforced. The solution was to enable ssh autologin with my appliance. I found perfect instructions to do so <a href="http://magicmonster.com/kb/net/ssh/auto_login.html" rel="nofollow">here</a>. Of course, on my Mac, the ssh package is there by default.</p>
<p>
Now I can add my repositories on the virtual appliance as root (no need to create an extra user for that, at least for home use) and login on them without problems and using all the turnkeylinux features out of the box and no other modifications.</p>
<p>
This made my life easier and now I managed to clone and push my repos to and from the turnkeylinux with just 1 modification to the appliance itself. This gets close to my understanding of the turnkeylinux background idea: use it out of the box.</p>
<p>
Thanks to the turnkeylinux team! :-)</p>http://www.turnkeylinux.org/forum/support/20110130/redmine-appliance-and-mercurial-setup-enable-ssh-push-machg#commentsSupportmercurialredminesshSun, 30 Jan 2011 14:18:12 +0000Otrebor2005 at http://www.turnkeylinux.org