ansible-gitea-management/templates/etc/httpd/conf.d/gitea.conf.j2

31 lines
912 B
Plaintext
Raw Normal View History

2022-06-04 02:33:48 +00:00
<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>