<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Git_http_server</id>
	<title>Git http server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Git_http_server"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Git_http_server&amp;action=history"/>
	<updated>2026-04-03T17:45:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.0</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Git_http_server&amp;diff=12600&amp;oldid=prev</id>
		<title>Bratorange: /* Example Configuration */</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Git_http_server&amp;diff=12600&amp;oldid=prev"/>
		<updated>2024-04-30T13:25:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example Configuration&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:25, 30 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l39&quot;&gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Cookbook]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-12599:rev-12600:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Bratorange</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Git_http_server&amp;diff=12599&amp;oldid=prev</id>
		<title>Bratorange: Created page with &quot; == Example Configuration == &lt;syntaxhighlight lang=&quot;nixos&quot;&gt; { config, pkgs, ... }: {     # We will be using nginx as web server. As nginx doesnt support cgi scrips     # but fastcgi. We need fcgiwrap to forward requests     # -(https)-&gt; nginx -(fastcgi)-&gt; fcgiwrap -(cgi)-&gt; git-http-backend     services.fcgiwrap.enable = true;     services.fcgiwrap.user = &quot;nginx&quot;;     services.nginx.enable = true;      services.nginx.virtualHosts.&quot;git.example.com&quot; = {         # use ssl fo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Git_http_server&amp;diff=12599&amp;oldid=prev"/>
		<updated>2024-04-30T13:25:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Example Configuration == &amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot;&amp;gt; { config, pkgs, ... }: {     # We will be using nginx as web server. As nginx doesnt support cgi scrips     # but fastcgi. We need fcgiwrap to forward requests     # -(https)-&amp;gt; nginx -(fastcgi)-&amp;gt; fcgiwrap -(cgi)-&amp;gt; git-http-backend     services.fcgiwrap.enable = true;     services.fcgiwrap.user = &amp;quot;nginx&amp;quot;;     services.nginx.enable = true;      services.nginx.virtualHosts.&amp;quot;git.example.com&amp;quot; = {         # use ssl fo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Example Configuration ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot;&amp;gt;&lt;br /&gt;
{ config, pkgs, ... }: {&lt;br /&gt;
    # We will be using nginx as web server. As nginx doesnt support cgi scrips&lt;br /&gt;
    # but fastcgi. We need fcgiwrap to forward requests&lt;br /&gt;
    # -(https)-&amp;gt; nginx -(fastcgi)-&amp;gt; fcgiwrap -(cgi)-&amp;gt; git-http-backend&lt;br /&gt;
    services.fcgiwrap.enable = true;&lt;br /&gt;
    services.fcgiwrap.user = &amp;quot;nginx&amp;quot;;&lt;br /&gt;
    services.nginx.enable = true;&lt;br /&gt;
&lt;br /&gt;
    services.nginx.virtualHosts.&amp;quot;git.example.com&amp;quot; = {&lt;br /&gt;
        # use ssl for all requests; dissallow unencrypted requests&lt;br /&gt;
        enableACME = true; # If you want to use Let&amp;#039;s Encrypt for SSL certificates&lt;br /&gt;
        forceSSL = true;&lt;br /&gt;
        # this regex is needed to catch the path the git client is requesting&lt;br /&gt;
        locations.&amp;quot;~ (/.*)&amp;quot; = {&lt;br /&gt;
&lt;br /&gt;
          # This is where the repositories live on the server&lt;br /&gt;
          root = &amp;quot;/folder/to/public/repos&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
          # Setup FastCGI for Git HTTP Backend&lt;br /&gt;
          extraConfig = &amp;#039;&amp;#039;&lt;br /&gt;
            fastcgi_pass        unix:/run/fcgiwrap.sock;&lt;br /&gt;
            include             ${pkgs.nginx}/conf/fastcgi_params;&lt;br /&gt;
            # All parameters below will be forwarded to fcgiwrap which then starts&lt;br /&gt;
            # the git http proces with the the params as environment variables except&lt;br /&gt;
            # for SCRIPT_FILENAME. See &amp;quot;man git-http-server&amp;quot; for more information on them.&lt;br /&gt;
            fastcgi_param       SCRIPT_FILENAME     ${pkgs.git}/bin/git-http-backend;&lt;br /&gt;
            fastcgi_param       GIT_PROJECT_ROOT /hdd/gitolite/www-public;&lt;br /&gt;
            # CAREFULL! only include this option if you want all the repos in $root to&lt;br /&gt;
            # to be read.&lt;br /&gt;
            fastcgi_param       GIT_HTTP_EXPORT_ALL &amp;quot;&amp;quot;;&lt;br /&gt;
            # use the path from the regex in the location&lt;br /&gt;
            fastcgi_param       PATH_INFO           $1;&lt;br /&gt;
            &amp;#039;&amp;#039;;&lt;br /&gt;
        };&lt;br /&gt;
    };&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bratorange</name></author>
	</entry>
</feed>