Kromek Radangel gamma spectrometer USB HID daemon and WebUI. https://git.unino.de/pvivell/radangel
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

nginx-default-datasrc-location.conf 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 snippets/snakeoil.conf;
  38. root /var/www/html;
  39. # Add index.php to the list if you are using PHP
  40. index index.html index.htm index.nginx-debian.html;
  41. server_name _;
  42. location / {
  43. # First attempt to serve request as file, then
  44. # as directory, then fall back to displaying a 404.
  45. try_files $uri $uri/ =404;
  46. }
  47. # pass PHP scripts to FastCGI server
  48. #
  49. #location ~ \.php$ {
  50. # include snippets/fastcgi-php.conf;
  51. #
  52. # # With php-fpm (or other unix sockets):
  53. # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  54. # # With php-cgi (or other tcp sockets):
  55. # fastcgi_pass 127.0.0.1:9000;
  56. #}
  57. # deny access to .htaccess files, if Apache's document root
  58. # concurs with nginx's one
  59. #
  60. #location ~ /\.ht {
  61. # deny all;
  62. #}
  63. ## <DATASRC> ##
  64. location /data/hist.tsv {
  65. alias /tmp/stats.tsv;
  66. }
  67. location /data/stream.tsv {
  68. alias /tmp/event.tsv;
  69. }
  70. location /data/stream.ws {
  71. proxy_http_version 1.1;
  72. proxy_set_header Upgrade $http_upgrade;
  73. proxy_set_header Connection "upgrade";
  74. proxy_set_header Host $host; # $http_host;
  75. proxy_set_header X-Real-IP $remote_addr;
  76. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  77. proxy_set_header X-NginX-Proxy true;
  78. proxy_read_timeout 3600;
  79. proxy_buffering off;
  80. tcp_nodelay on;
  81. error_page 502 = /data/stream.tsv; # serve http for non-ws clients
  82. proxy_pass http://127.0.0.1:5800/websockify;
  83. }
  84. ## </DATASRC> ##
  85. }
  86. # Virtual Host configuration for example.com
  87. #
  88. # You can move that to a different file under sites-available/ and symlink that
  89. # to sites-enabled/ to enable it.
  90. #
  91. #server {
  92. # listen 80;
  93. # listen [::]:80;
  94. #
  95. # server_name example.com;
  96. #
  97. # root /var/www/example.com;
  98. # index index.html;
  99. #
  100. # location / {
  101. # try_files $uri $uri/ =404;
  102. # }
  103. #}