mpsweb-nginx.conf 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # mps-web uygulaması-yayım
  2. server {
  3. #sadece lokalden yayına açık
  4. listen localhost:16060 ssl;
  5. ssl_certificate /etc/nginx/ssl/mpsweb.crt;
  6. ssl_certificate_key /etc/nginx/ssl/mpsweb.key;
  7. location ~ /pub/(\w+)$ {
  8. nchan_publisher;
  9. nchan_channel_group mps;
  10. nchan_channel_id $arg_id;
  11. nchan_message_timeout 10s;
  12. }
  13. }
  14. # mps-web uygulaması-alım
  15. server {
  16. #genel erişime açık
  17. #listen 80;
  18. #sadece lokalden erişime açık
  19. listen localhost:16061 ssl;
  20. ssl_certificate /etc/nginx/ssl/mpsweb.crt;
  21. ssl_certificate_key /etc/nginx/ssl/mpsweb.key;
  22. location ~ /sub/(\w+)$ {
  23. nchan_subscriber;
  24. nchan_channel_group mps;
  25. nchan_channel_id $arg_id;
  26. }
  27. }
  28. # mps-web uygulaması-html
  29. server {
  30. listen localhost:6060;
  31. #ssl_certificate /etc/nginx/ssl/mpsweb.crt;
  32. #ssl_certificate_key /etc/nginx/ssl/mpsweb.key;
  33. location / {
  34. root /srv/http/mpsweb;
  35. index index.html;
  36. auth_basic "Milis Linux Uygulama Paneli";
  37. auth_basic_user_file /etc/nginx/.htpasswd;
  38. }
  39. error_page 500 502 503 504 /50x.html;
  40. location = /50x.html {
  41. root /srv/http/html;
  42. }
  43. }