Move pagure.io above pagure.org to server pagure.io SSL ceret by default
This commit is contained in:
parent
271d20cfd8
commit
8ccd985b70
1 changed files with 36 additions and 35 deletions
|
@ -6,6 +6,8 @@ WSGIPassAuthorization On
|
||||||
WSGIDaemonProcess pagure user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
|
WSGIDaemonProcess pagure user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
|
||||||
WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-name=paguredocs processes=4 threads=4 inactivity-timeout=300
|
WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-name=paguredocs processes=4 threads=4 inactivity-timeout=300
|
||||||
|
|
||||||
|
## Redirects http -> https
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
{% if env == 'pagure-staging' %}
|
{% if env == 'pagure-staging' %}
|
||||||
ServerName stg.pagure.io
|
ServerName stg.pagure.io
|
||||||
|
@ -16,7 +18,6 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
{% if env == 'pagure-staging' %}
|
{% if env == 'pagure-staging' %}
|
||||||
ServerName docs.stg.pagure.org
|
ServerName docs.stg.pagure.org
|
||||||
|
@ -49,40 +50,7 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
## End of redirects http -> https
|
||||||
<VirtualHost *:443>
|
|
||||||
{% if env == 'pagure-staging' %}
|
|
||||||
ServerName docs.stg.pagure.org
|
|
||||||
{% else %}
|
|
||||||
ServerName docs.pagure.org
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
WSGIScriptAlias / /var/www/docs_pagure.wsgi
|
|
||||||
|
|
||||||
SSLEngine on
|
|
||||||
SSLProtocol all -SSLv2 -SSLv3
|
|
||||||
# Use secure TLSv1.1 and TLSv1.2 ciphers
|
|
||||||
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
|
||||||
|
|
||||||
SSLCertificateFile /etc/pki/tls/certs/docs.pagure.org.crt
|
|
||||||
SSLCertificateChainFile /etc/pki/tls/certs/docs.pagure.org.intermediate.crt
|
|
||||||
SSLCertificateKeyFile /etc/pki/tls/certs/docs.pagure.org.key
|
|
||||||
|
|
||||||
Alias /static /usr/lib/python2.7/site-packages/pagure/static/
|
|
||||||
|
|
||||||
<Location />
|
|
||||||
WSGIProcessGroup paguredocs
|
|
||||||
<IfModule mod_authz_core.c>
|
|
||||||
# Apache 2.4
|
|
||||||
Require all granted
|
|
||||||
</IfModule>
|
|
||||||
<IfModule !mod_authz_core.c>
|
|
||||||
# Apache 2.2
|
|
||||||
Order deny,allow
|
|
||||||
Allow from all
|
|
||||||
</IfModule>
|
|
||||||
</Location>
|
|
||||||
</VirtualHost>
|
|
||||||
|
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
|
@ -149,3 +117,36 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost *:443>
|
||||||
|
{% if env == 'pagure-staging' %}
|
||||||
|
ServerName docs.stg.pagure.org
|
||||||
|
{% else %}
|
||||||
|
ServerName docs.pagure.org
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
WSGIScriptAlias / /var/www/docs_pagure.wsgi
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
SSLProtocol all -SSLv2 -SSLv3
|
||||||
|
# Use secure TLSv1.1 and TLSv1.2 ciphers
|
||||||
|
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
||||||
|
|
||||||
|
SSLCertificateFile /etc/pki/tls/certs/docs.pagure.org.crt
|
||||||
|
SSLCertificateChainFile /etc/pki/tls/certs/docs.pagure.org.intermediate.crt
|
||||||
|
SSLCertificateKeyFile /etc/pki/tls/certs/docs.pagure.org.key
|
||||||
|
|
||||||
|
Alias /static /usr/lib/python2.7/site-packages/pagure/static/
|
||||||
|
|
||||||
|
<Location />
|
||||||
|
WSGIProcessGroup paguredocs
|
||||||
|
<IfModule mod_authz_core.c>
|
||||||
|
# Apache 2.4
|
||||||
|
Require all granted
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_authz_core.c>
|
||||||
|
# Apache 2.2
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</IfModule>
|
||||||
|
</Location>
|
||||||
|
</VirtualHost>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue