You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.9 KiB

  1. server {
  2. listen 80 default_server;
  3. server_name localhost;
  4. #charset koi8-r;
  5. #access_log /var/log/nginx/host.access.log main;
  6. location / {
  7. root /usr/share/nginx/html;
  8. index index.html index.htm;
  9. }
  10. #error_page 404 /404.html;
  11. # redirect server error pages to the static page /50x.html
  12. #
  13. error_page 500 502 503 504 /50x.html;
  14. location = /50x.html {
  15. root /usr/share/nginx/html;
  16. }
  17. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  18. #
  19. #location ~ \.php$ {
  20. # proxy_pass http://127.0.0.1;
  21. #}
  22. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  23. #
  24. #location ~ \.php$ {
  25. # root html;
  26. # fastcgi_pass 127.0.0.1:9000;
  27. # fastcgi_index index.php;
  28. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  29. # include fastcgi_params;
  30. #}
  31. # deny access to .htaccess files, if Apache's document root
  32. # concurs with nginx's one
  33. #
  34. #location ~ /\.ht {
  35. # deny all;
  36. #}
  37. # enable /api/ location with appropriate access control in order
  38. # to make use of NGINX Plus API
  39. #
  40. #location /api/ {
  41. # api write=on;
  42. # allow 127.0.0.1;
  43. # deny all;
  44. #}
  45. # enable NGINX Plus Dashboard; requires /api/ location to be
  46. # enabled and appropriate access control for remote access
  47. #
  48. #location = /dashboard.html {
  49. # root /usr/share/nginx/html;
  50. #}
  51. location /hls {
  52. # Serve HLS fragments
  53. types {
  54. application/vnd.apple.mpegurl m3u8;
  55. video/mp2t ts;
  56. }
  57. root /tmp;
  58. add_header Cache-Control no-cache;
  59. add_header 'Access-Control-Allow-Origin' '*';
  60. }
  61. location /dash {
  62. root /tmp;
  63. add_header Cache-Control no-cache;
  64. add_header 'Access-Control-Allow-Origin' '*';
  65. }
  66. }