git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/gitlab.conf
blob: f264771e7375d4ef7d0d0200772d2d10726197d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# The rather quick and dirty approach: the default URL within gitlab is http://fqdn/, and this here
# redirects anything to https, so we take a hop around the corner before entering the restaurant.
# But then again, this works, while redirect.rb in gitlab doesn't specifically aim towards
# $CHOOSE_YOUR_PROTOCOL.
<VirtualHost *:80>
  ServerName gitlab.lirion.de
  ServerSignature Off

  RewriteEngine on
  RewriteCond %{HTTPS} !=on
  RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
</VirtualHost>