Installer/Updater
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.

103 lines
2.7 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. ##
  2. # You should look at the following URL's in order to grasp a solid understanding
  3. # of Nginx configuration files in order to fully unleash the power of Nginx.
  4. # https://www.nginx.com/resources/wiki/start/
  5. # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
  6. # https://wiki.debian.org/Nginx/DirectoryStructure
  7. #
  8. # In most cases, administrators will remove this file from sites-enabled/ and
  9. # leave it as reference inside of sites-available where it will continue to be
  10. # updated by the nginx packaging team.
  11. #
  12. # This file will automatically load configuration files provided by other
  13. # applications, such as Drupal or Wordpress. These applications will be made
  14. # available underneath a path with that package name, such as /drupal8.
  15. #
  16. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  17. ##
  18. # Default server configuration
  19. #
  20. server {
  21. listen 80 default_server;
  22. listen [::]:80 default_server;
  23. # SSL configuration
  24. #
  25. listen 443 ssl default_server;
  26. listen [::]:443 ssl default_server;
  27. #
  28. # Note: You should disable gzip for SSL traffic.
  29. # See: https://bugs.debian.org/773332
  30. #
  31. # Read up on ssl_ciphers to ensure a secure configuration.
  32. # See: https://bugs.debian.org/765782
  33. #
  34. # Self signed certs generated by the ssl-cert package
  35. # Don't use them in a production server!
  36. #
  37. include /srv/etc/nginx/self-signed.conf;
  38. include /srv/etc/nginx/ssl-params.conf;
  39. #add_header X-Content-Type-Options nosniff;
  40. root /srv/www/web;
  41. # Add index.php to the list if you are using PHP
  42. index index.html index.htm index.nginx-debian.html;
  43. server_name _;
  44. location / {
  45. # First attempt to serve request as file, then
  46. # as directory, then fall back to displaying a 404.
  47. try_files $uri $uri/ =404;
  48. index index.html index.php;
  49. }
  50. # pass PHP scripts to FastCGI server
  51. #
  52. location ~ \.php$ {
  53. include snippets/fastcgi-php.conf;
  54. fastcgi_pass unix:/run/php/php-fpm.sock;
  55. }
  56. # deny access to .htaccess files, if Apache's document root
  57. # concurs with nginx's one
  58. #
  59. location ~* /jsapi_dynamic/.+\.js$ {
  60. include snippets/fastcgi-php.conf;
  61. fastcgi_pass unix:/run/php/php-fpm.sock;
  62. }
  63. location /video_feed/ {
  64. proxy_pass http://127.0.0.1:8972;
  65. proxy_set_header Host $host;
  66. proxy_set_header X-Real-IP $remote_addr;
  67. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  68. }
  69. location ~ /\.ht {
  70. deny all;
  71. }
  72. }
  73. # Virtual Host configuration for example.com
  74. #
  75. # You can move that to a different file under sites-available/ and symlink that
  76. # to sites-enabled/ to enable it.
  77. #
  78. #server {
  79. # listen 80;
  80. # listen [::]:80;
  81. #
  82. # server_name example.com;
  83. #
  84. # root /var/www/example.com;
  85. # index index.html;
  86. #
  87. # location / {
  88. # try_files $uri $uri/ =404;
  89. # }
  90. #}