Advertisement
Guest User

nginx.conf

a guest
Mar 6th, 2023
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1.  
  2.  
  3. user www-data;
  4. worker_processes auto;
  5. pid /run/nginx.pid;
  6. include /etc/nginx/modules-enabled/*.conf;
  7.  
  8. events {
  9. worker_connections 768;
  10. # multi_accept on;
  11. }
  12.  
  13. http {
  14.  
  15. ##
  16. # Basic Settings
  17. ##
  18.  
  19. sendfile on;
  20. tcp_nopush on;
  21. types_hash_max_size 2048;
  22. # server_tokens off;
  23.  
  24. # server_names_hash_bucket_size 64;
  25. # server_name_in_redirect off;
  26.  
  27. include /etc/nginx/mime.types;
  28. default_type application/octet-stream;
  29.  
  30. ##
  31. # SSL Settings
  32. ##
  33.  
  34. ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  35. ssl_prefer_server_ciphers on;
  36.  
  37. ##
  38. # Logging Settings
  39. ##
  40.  
  41. access_log /var/log/nginx/access.log;
  42. error_log /var/log/nginx/error.log;
  43.  
  44. ##
  45. # Gzip Settings
  46. ##
  47.  
  48. gzip on;
  49.  
  50. # gzip_vary on;
  51. # gzip_proxied any;
  52. # gzip_comp_level 6;
  53. # gzip_buffers 16 8k;
  54. # gzip_http_version 1.1;
  55. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  56.  
  57. ##
  58. # Virtual Host Configs
  59. ##
  60.  
  61. include /etc/nginx/conf.d/*.conf;
  62. include /etc/nginx/sites-enabled/*;
  63.  
  64. # Must be in HTTP block
  65. # Set in-memory cache-metadata size in keys_zone, size of video caching and how many days a cached object should persist
  66. proxy_cache_path /var/cache/nginx/jellyfin-videos levels=1:2 keys_zone=jellyfin-videos:100m inactive=90d max_size=35000m;
  67. map $request_uri $h264Level { ~(h264-level=)(.+?)& $2; }
  68. map $request_uri $h264Profile { ~(h264-profile=)(.+?)& $2; }
  69. }
  70.  
  71.  
  72. #mail {
  73. # # See sample authentication script at:
  74. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  75. #
  76. # # auth_http localhost/auth.php;
  77. # # pop3_capabilities "TOP" "USER";
  78. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  79. #
  80. # server {
  81. # listen localhost:110;
  82. # protocol pop3;
  83. # proxy on;
  84. # }
  85. #
  86. # server {
  87. # listen localhost:143;
  88. # protocol imap;
  89. # proxy on;
  90. # }
  91. #}
  92.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement