nginx.conf 625 B

123456789101112131415161718192021
  1. server {
  2. listen {{ nightly_build_nginx_listen }};
  3. server_name {{ nightly_build_hostname }};
  4. root {{ nightly_build_wwwdir }};
  5. index index.html;
  6. location / {
  7. try_files $uri $uri/ =404;
  8. }
  9. location /reports {
  10. alias {{ testsuite_dir }}/reports;
  11. }
  12. location /tor-browser-builds {
  13. alias {{ testsuite_dir }}/tor-browser-builds;
  14. autoindex on;
  15. {% if nightly_build_nginx_auth_basic_enable %}
  16. auth_basic "Use tor-guest as username and password";
  17. auth_basic_user_file /etc/nginx/tbb-nightly-build.auth_basic_user_file;
  18. {% endif %}
  19. }
  20. }