1
0

pagure.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #WSGISocketPrefix run/wsgi
  2. ##WSGIRestrictStdout On
  3. #WSGIRestrictSignal Off
  4. #WSGIPythonOptimize 1
  5. #WSGIPassAuthorization On
  6. #WSGIDaemonProcess pagure user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
  7. ## It is important that the doc server runs in a different apache process
  8. #WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
  9. #<VirtualHost *:80>
  10. #ServerName localhost.localdomain
  11. #Redirect permanent / https://localhost.localdomain/
  12. #</VirtualHost>
  13. #<VirtualHost *:80>
  14. #ServerName docs.localhost.localdomain
  15. #Redirect permanent / https://docs.localhost.localdomain/
  16. #</VirtualHost>
  17. #<VirtualHost *:443>
  18. #ServerName docs.localhost.localdomain
  19. #WSGIScriptAlias / /usr/share/pagure/doc_pagure.wsgi
  20. #SSLEngine on
  21. #SSLProtocol all -SSLv2 -SSLv3
  22. ## Use secure TLSv1.1 and TLSv1.2 ciphers
  23. #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  24. #SSLCertificateFile /etc/pki/tls/....crt
  25. #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
  26. #SSLCertificateKeyFile /etc/pki/tls/....key
  27. #Alias /static /usr/lib/pythonX.Y/site-packages/pagure/static/
  28. #<Location />
  29. #WSGIProcessGroup paguredocs
  30. #<IfModule mod_authz_core.c>
  31. ## Apache 2.4
  32. #Require all granted
  33. #</IfModule>
  34. #<IfModule !mod_authz_core.c>
  35. ## Apache 2.2
  36. #Order deny,allow
  37. #Allow from all
  38. #</IfModule>
  39. #</Location>
  40. #</VirtualHost>
  41. #<VirtualHost *:443>
  42. #ServerName localhost.localdomain
  43. #WSGIScriptAlias / /usr/share/pagure/pagure.wsgi
  44. #SSLEngine on
  45. #SSLProtocol all -SSLv2 -SSLv3
  46. ## Use secure TLSv1.1 and TLSv1.2 ciphers
  47. #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  48. #SSLCertificateFile /etc/pki/tls/....crt
  49. #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
  50. #SSLCertificateKeyFile /etc/pki/tls/....key
  51. #Alias /static /usr/lib/pythonX.Y/site-packages/pagure/static/
  52. #Alias /releases /var/www/releases
  53. ## Section used to support cloning git repo over http (https in this case)
  54. #SetEnv GIT_PROJECT_ROOT /path/to/git/repositories
  55. #AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /path/to/git/repositories/$1
  56. #AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /path/to/git/repositories/$1
  57. #ScriptAliasMatch \
  58. #"(?x)^/(.*/(HEAD | \
  59. #info/refs | \
  60. #objects/info/[^/]+ | \
  61. #git-(upload|receive)-pack))$" \
  62. #/usr/libexec/git-core/git-http-backend/$1
  63. #<Location />
  64. #WSGIProcessGroup pagure
  65. #<IfModule mod_authz_core.c>
  66. ## Apache 2.4
  67. #Require all granted
  68. #</IfModule>
  69. #<IfModule !mod_authz_core.c>
  70. ## Apache 2.2
  71. #Order deny,allow
  72. #Allow from all
  73. #</IfModule>
  74. #</Location>
  75. ## Folder where are stored the tarball of the releases
  76. #<Location /releases>
  77. #WSGIProcessGroup pagure
  78. #<IfModule mod_authz_core.c>
  79. ## Apache 2.4
  80. #Require all granted
  81. #</IfModule>
  82. #<IfModule !mod_authz_core.c>
  83. ## Apache 2.2
  84. #Order deny,allow
  85. #Allow from all
  86. #</IfModule>
  87. #</Location>
  88. #<Directory /var/www/releases>
  89. #Options +Indexes
  90. #</Directory>
  91. #</VirtualHost>