ansible-gitea-management/templates/etc/httpd/conf.d/gitea.conf.j2
2022-06-03 19:33:48 -07:00

31 lines
912 B
Django/Jinja

<VirtualHost *:80>
ServerName {{ gitea_basename }}
ServerAlias {{ gitea_basename }}
ProxyPreserveHost On
ProxyRequests Off
AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:3000/ nocanon
ProxyPassReverse / http://localhost:3000/ nocanon
ServerAdmin {{ gitea_server_admin }}
</VirtualHost>
<VirtualHost *:443>
Protocols h2 http/1.1
SSLEngine On
ServerName {{ gitea_basename }}
ServerAlias {{ gitea_basename }}
ProxyPreserveHost On
ProxyRequests Off
AllowEncodedSlashes NoDecode
ProxyPass / http://localhost:3000/ nocanon
ProxyPassReverse / http://localhost:3000/ nocanon
SSLEngine on
SSLHonorCipherOrder on
SSLCipherSuite PROFILE=SYSTEM
SSLProxyCipherSuite PROFILE=SYSTEM
SSLCertificateFile /etc/pki/tls/certs/{{ gitea_basename }}.crt
SSLCertificateKeyFile /etc/pki/tls/private/{{ gitea_basename }}.key
ServerAdmin {{ gitea_server_admin }}
</VirtualHost>