From d48c1ce2af934c512f808150e95a60a3ace21640 Mon Sep 17 00:00:00 2001 From: Rafael Laboissière Date: Sat, 10 Dec 2022 16:18:50 -0300 Subject: Initial commit --- apache | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apache (limited to 'apache') diff --git a/apache b/apache new file mode 100644 index 0000000..730b135 --- /dev/null +++ b/apache @@ -0,0 +1,24 @@ +[MODE: -*- apache -*- :] + +[HTTPS: +:] + + ServerAdmin cefala-admin@cefala.org + ServerName cgit.cefala.org + ProxyPass /cgit http://git.cefala.org/cgit/ + ProxyPassReverse /cgit http://git.cefala.org/cgit/ + ProxyPass /cgit-css http://git.cefala.org/cgit-css/ + ProxyPassReverse /cgit-css http://git.cefala.org/cgit-css/ + ProxyPass / http://git.cefala.org/cgit/ + ProxyPassReverse / http://git.cefala.org/cgit/ +[HTTP: + RewriteEngine on + RewriteCond %{SERVER_NAME} =cgit.cefala.org + RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]:] +[HTTPS: + Include /etc/letsencrypt/options-ssl-apache.conf + SSLCertificateFile /etc/letsencrypt/live/cgit.cefala.org/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/cgit.cefala.org/privkey.pem:] + +[HTTPS: +:] -- cgit v1.2.3