1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-ansible/files/git.crypto-libertarian.com.conf

56 lines
1.7 KiB
Text
Raw Normal View History

2020-01-24 17:27:16 -05:00
NameVirtualHost *:80
<VirtualHost *:80>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName git.crypto-libertarian.com
Redirect permanent / https://git.crypto-libertarian.com/
</VirtualHost>
<VirtualHost _default_:443>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName git.crypto-libertarian.com
2020-01-25 00:27:55 -05:00
RewriteEngine on
SSLEngine on
2020-01-24 17:27:16 -05:00
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
2020-01-25 00:27:55 -05:00
SetEnv GIT_PROJECT_ROOT /home/git
SetEnv GIT_HTTP_EXPORT_ALL
2020-01-24 17:35:44 -05:00
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
2020-01-24 17:27:16 -05:00
2020-01-25 00:27:55 -05:00
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
2020-01-24 17:35:44 -05:00
ScriptAlias / /usr/lib/cgit/cgit.cgi/
2020-01-24 17:27:16 -05:00
2020-01-25 00:27:55 -05:00
<Directory "/usr/lib/git-core/">
AllowOverride None
Options ExecCGI FollowSymlinks
Require all granted
</Directory>
2020-01-24 17:27:16 -05:00
<Directory "/usr/lib/cgit/">
2020-01-25 00:27:55 -05:00
AllowOverride None
Options ExecCGI FollowSymlinks
Require all granted
2020-01-24 17:27:16 -05:00
</Directory>
</VirtualHost>