|
Pierre-Yves Chibon |
f26fc7 |
#WSGISocketPrefix run/wsgi
|
|
Pierre-Yves Chibon |
ab40ed |
##WSGIRestrictStdout On
|
|
Pierre-Yves Chibon |
f26fc7 |
#WSGIRestrictSignal Off
|
|
Pierre-Yves Chibon |
f26fc7 |
#WSGIPythonOptimize 1
|
|
Pierre-Yves Chibon |
ab40ed |
#WSGIPassAuthorization On
|
|
Pierre-Yves Chibon |
ab40ed |
#WSGIDaemonProcess pagure user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
|
|
Pierre-Yves Chibon |
ab40ed |
## It is important that the doc server runs in a different apache process
|
|
Pierre-Yves Chibon |
ab40ed |
#WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#<virtualhost *:80=""></virtualhost>
|
|
Neal Gompa |
9c34c4 |
#ServerName localhost.localdomain
|
|
Neal Gompa |
9c34c4 |
#Redirect permanent / https://localhost.localdomain/
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#<virtualhost *:80=""></virtualhost>
|
|
Neal Gompa |
9c34c4 |
#ServerName docs.localhost.localdomain
|
|
Neal Gompa |
9c34c4 |
#Redirect permanent / https://docs.localhost.localdomain/
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#<virtualhost *:443=""></virtualhost>
|
|
Neal Gompa |
9c34c4 |
#ServerName docs.localhost.localdomain
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Peter KolĂnek |
12b2bc |
#WSGIScriptAlias / /usr/share/pagure/doc_pagure.wsgi
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLEngine on
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLProtocol all -SSLv2 -SSLv3
|
|
Pierre-Yves Chibon |
ab40ed |
## Use secure TLSv1.1 and TLSv1.2 ciphers
|
|
Pierre-Yves Chibon |
ab40ed |
#Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLCertificateFile /etc/pki/tls/....crt
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLCertificateKeyFile /etc/pki/tls/....key
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Neal Gompa |
55fa35 |
#Alias /static /usr/lib/pythonX.Y/site-packages/pagure/static/
|
|
Pierre-Yves Chibon |
f26fc7 |
|
|
Pierre-Yves Chibon |
ab40ed |
#<location></location>
|
|
Pierre-Yves Chibon |
ab40ed |
#WSGIProcessGroup paguredocs
|
|
Pierre-Yves Chibon |
ab40ed |
#<ifmodule mod_authz_core.c=""></ifmodule>
|
|
Pierre-Yves Chibon |
ab40ed |
## Apache 2.4
|
|
Pierre-Yves Chibon |
ab40ed |
#Require all granted
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
#<ifmodule !mod_authz_core.c=""></ifmodule>
|
|
Pierre-Yves Chibon |
ab40ed |
## Apache 2.2
|
|
Pierre-Yves Chibon |
ab40ed |
#Order deny,allow
|
|
Pierre-Yves Chibon |
ab40ed |
#Allow from all
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#<virtualhost *:443=""></virtualhost>
|
|
Neal Gompa |
9c34c4 |
#ServerName localhost.localdomain
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#WSGIScriptAlias / /usr/share/pagure/pagure.wsgi
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLEngine on
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLProtocol all -SSLv2 -SSLv3
|
|
Pierre-Yves Chibon |
ab40ed |
## Use secure TLSv1.1 and TLSv1.2 ciphers
|
|
Pierre-Yves Chibon |
ab40ed |
#Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLCertificateFile /etc/pki/tls/....crt
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
|
|
Pierre-Yves Chibon |
ab40ed |
#SSLCertificateKeyFile /etc/pki/tls/....key
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Neal Gompa |
55fa35 |
#Alias /static /usr/lib/pythonX.Y/site-packages/pagure/static/
|
|
Pierre-Yves Chibon |
ab40ed |
#Alias /releases /var/www/releases
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
## Section used to support cloning git repo over http (https in this case)
|
|
Neal Gompa |
9c34c4 |
#SetEnv GIT_PROJECT_ROOT /path/to/git/repositories
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /path/to/git/repositories/$1
|
|
Pierre-Yves Chibon |
ab40ed |
#AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /path/to/git/repositories/$1
|
|
Pierre-Yves Chibon |
ab40ed |
#ScriptAliasMatch \
|
|
Pierre-Yves Chibon |
ab40ed |
#"(?x)^/(.*/(HEAD | \
|
|
Pierre-Yves Chibon |
ab40ed |
#info/refs | \
|
|
Pierre-Yves Chibon |
ab40ed |
#objects/info/[^/]+ | \
|
|
Pierre-Yves Chibon |
ab40ed |
#git-(upload|receive)-pack))$" \
|
|
Pierre-Yves Chibon |
ab40ed |
#/usr/libexec/git-core/git-http-backend/$1
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#<location></location>
|
|
Pierre-Yves Chibon |
ab40ed |
#WSGIProcessGroup pagure
|
|
Pierre-Yves Chibon |
ab40ed |
#<ifmodule mod_authz_core.c=""></ifmodule>
|
|
Pierre-Yves Chibon |
ab40ed |
## Apache 2.4
|
|
Pierre-Yves Chibon |
ab40ed |
#Require all granted
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
#<ifmodule !mod_authz_core.c=""></ifmodule>
|
|
Pierre-Yves Chibon |
ab40ed |
## Apache 2.2
|
|
Pierre-Yves Chibon |
ab40ed |
#Order deny,allow
|
|
Pierre-Yves Chibon |
ab40ed |
#Allow from all
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
## Folder where are stored the tarball of the releases
|
|
Pierre-Yves Chibon |
ab40ed |
#<location releases=""></location>
|
|
Pierre-Yves Chibon |
ab40ed |
#WSGIProcessGroup pagure
|
|
Pierre-Yves Chibon |
ab40ed |
#<ifmodule mod_authz_core.c=""></ifmodule>
|
|
Pierre-Yves Chibon |
ab40ed |
## Apache 2.4
|
|
Pierre-Yves Chibon |
ab40ed |
#Require all granted
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
#<ifmodule !mod_authz_core.c=""></ifmodule>
|
|
Pierre-Yves Chibon |
ab40ed |
## Apache 2.2
|
|
Pierre-Yves Chibon |
ab40ed |
#Order deny,allow
|
|
Pierre-Yves Chibon |
ab40ed |
#Allow from all
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
ab40ed |
|
|
Pierre-Yves Chibon |
ab40ed |
#<directory releases="" var="" www=""></directory>
|
|
Pierre-Yves Chibon |
ab40ed |
#Options +Indexes
|
|
Pierre-Yves Chibon |
ab40ed |
#
|
|
Pierre-Yves Chibon |
f5f7aa |
|
|
Pierre-Yves Chibon |
f5f7aa |
#
|
|
Pierre-Yves Chibon |
ab40ed |
|