Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. server {
  2. listen 443 ssl spdy;
  3. listen [::]:443 ssl spdy;
  4.  
  5. server_name media.melted.pw;
  6.  
  7. root /nope/dot/jpg;
  8. index index.php index.html;
  9.  
  10. ssl on;
  11. ssl_certificate /etc/ssl/melted.pw/melted.pw.crt;
  12. ssl_certificate_key /etc/ssl/melted.pw/melted.pw.key;
  13.  
  14. ssl_stapling on;
  15. ssl_stapling_verify on;
  16. ssl_trusted_certificate /etc/ssl/melted.pw/full_chain.pem;
  17. resolver 8.8.8.8 8.8.4.4 valid=300s;
  18. resolver_timeout 5s;
  19.  
  20. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  21. add_header X-Frame-Options "DENY";
  22. add_header X-Content-Type-Options nosniff;
  23.  
  24. location / {
  25. proxy_pass https://localhost:/nope/dot/jpg;
  26. include proxy_params;
  27. }
  28.  
  29. location /rutorrent {
  30. try_files $uri $uri/ index.html;
  31. auth_basic "Restricted";
  32. auth_basic_user_file /nope/dot/jpg;
  33. }
  34.  
  35. location /sonarr {
  36. proxy_pass http://localhost:/nope/dot/jpg;
  37. include proxy_params;
  38. }
  39.  
  40. location /couchpotato {
  41. proxy_pass https://localhost:/nope/dot/jpg;
  42. include proxy_params;
  43. }
  44.  
  45. location /RPC2 {
  46. include scgi_params;
  47. scgi_pass localhost:/nope/dot/jpg;
  48. }
  49.  
  50. location = /favicon.ico {
  51. log_not_found off;
  52. access_log off;
  53. }
  54.  
  55. location = /robots.txt {
  56. allow all;
  57. log_not_found off;
  58. access_log off;
  59. }
  60.  
  61. location ~ \.php$ {
  62. include fastcgi_params;
  63. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  64. fastcgi_pass unix:/var/run/php5-fpm.sock;
  65. fastcgi_index index.php;
  66. fastcgi_param HTTPS on;
  67. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  68. fastcgi_read_timeout 630;
  69. fastcgi_keep_conn on;
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement