pagure-nginx.conf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #server {
  2. #listen 80;
  3. #server_name docs.localhost.localdomain;
  4. #return 301 https://docs.localhost.localdomain$request_uri;
  5. #}
  6. #server {
  7. #listen 443 ssl;
  8. #server_name docs.localhost.localdomain;
  9. #access_log /var/log/nginx/pagure_docs.access.log;
  10. #error_log /var/log/nginx/pagure_docs.error.log;
  11. #ssl_certificate /etc/pki/tls/....crt
  12. #ssl_certificate_key /etc/pki/tls/....key
  13. #location @pagure_docs {
  14. #proxy_set_header Host $http_host;
  15. #proxy_set_header X-Real-IP $remote_addr;
  16. #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. #proxy_set_header X-Forwarded-Proto $scheme;
  18. #proxy_pass http://unix:/tmp/pagure_docs_web.sock;
  19. #}
  20. #location / {
  21. #try_files $uri @pagure_docs;
  22. #}
  23. #location /static {
  24. #alias /usr/lib/pythonX.Y/site-packages/pagure/static/;
  25. #try_files $uri $uri/;
  26. #}
  27. #}
  28. #server {
  29. #listen 80;
  30. #server_name localhost.localdomain;
  31. #return 301 https://localhost.localdomain$request_uri;
  32. #}
  33. #server {
  34. #listen 443 ssl;
  35. #server_name localhost.localdomain;
  36. #access_log /var/log/nginx/pagure.access.log;
  37. #error_log /var/log/nginx/pagure.error.log;
  38. #ssl_certificate /etc/pki/tls/....crt
  39. #ssl_certificate_key /etc/pki/tls/....key
  40. #location @pagure {
  41. #proxy_set_header Host $http_host;
  42. #proxy_set_header X-Real-IP $remote_addr;
  43. #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  44. #proxy_set_header X-Forwarded-Proto $scheme;
  45. #proxy_pass http://unix:/tmp/pagure_web.sock;
  46. #}
  47. #location / {
  48. #try_files $uri @pagure;
  49. #}
  50. #location /static {
  51. #alias /usr/lib/pythonX.Y/site-packages/pagure/static/;
  52. #}
  53. #location /releases {
  54. #alias /var/www/releases/;
  55. #autoindex on;
  56. #}
  57. #}