Server git repos over HTTPS
This commit is contained in:
parent
8fa363e8d9
commit
8e459dd374
|
@ -16,7 +16,7 @@ about-filter=/usr/lib/cgit/filters/html-converters/md2html
|
|||
#cache-static-ttl=-1
|
||||
case-sensitive-sort=0
|
||||
#clone-prefix=none
|
||||
clone-url=git@git.crypto-libertarian.com:$CGIT_REPO_URL.git
|
||||
clone-url=https://git.crypto-libertarian.com/$CGIT_REPO_URL.git git@git.crypto-libertarian.com:$CGIT_REPO_URL.git
|
||||
#commit-filter=none
|
||||
#commit-sort=unset
|
||||
#css=/cgit.css
|
||||
|
|
|
@ -15,22 +15,41 @@ NameVirtualHost *:80
|
|||
|
||||
ServerName git.crypto-libertarian.com
|
||||
|
||||
SSLEngine on
|
||||
RewriteEngine on
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/git.crypto-libertarian.com/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/git.crypto-libertarian.com/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/git.crypto-libertarian.com/chain.pem
|
||||
|
||||
SetEnv GIT_PROJECT_ROOT /home/git
|
||||
SetEnv GIT_HTTP_EXPORT_ALL
|
||||
|
||||
Alias /cgit.css /usr/share/cgit/cgit.css
|
||||
Alias /cgit.png /usr/share/cgit/cgit.png
|
||||
Alias /favicon.ico /usr/share/cgit/favicon.ico
|
||||
Alias /robots.txt /usr/share/cgit/robots.txt
|
||||
|
||||
ScriptAliasMatch \
|
||||
"(?x)^/(.*/(HEAD | \
|
||||
info/refs | \
|
||||
objects/(info/[^/]+ | \
|
||||
[0-9a-f]{2}/[0-9a-f]{38} | \
|
||||
pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
|
||||
git-(upload|receive)-pack))$" \
|
||||
/usr/lib/git-core/git-http-backend/$1
|
||||
|
||||
ScriptAlias / /usr/lib/cgit/cgit.cgi/
|
||||
|
||||
<Directory "/usr/lib/git-core/">
|
||||
AllowOverride None
|
||||
Options ExecCGI FollowSymlinks
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory "/usr/lib/cgit/">
|
||||
AllowOverride None
|
||||
Options ExecCGI FollowSymlinks
|
||||
Require all granted
|
||||
AllowOverride None
|
||||
Options ExecCGI FollowSymlinks
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
|
Reference in New Issue