31 lines
912 B
Plaintext
31 lines
912 B
Plaintext
|
<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>
|