Advertisement
boostn

thetruckstop.us.ssl.conf

Sep 6th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. # Centmin Mod Getting Started Guide
  2. # must read http://centminmod.com/getstarted.html
  3. # For HTTP/2 SSL Setup
  4. # read http://centminmod.com/nginx_configure_https_ssl_spdy.html
  5.  
  6. # redirect from www to non-www forced SSL
  7. # uncomment, save file and restart Nginx to enable
  8. # if unsure use return 302 before using return 301
  9. # server {
  10. # server_name thetruckstop.us www.thetruckstop.us;
  11. # return 302 https://thetruckstop.us$request_uri;
  12. # }
  13.  
  14. server {
  15. listen 443 ssl http2;
  16. server_name thetruckstop.us www.thetruckstop.us;
  17.  
  18. ssl_dhparam /usr/local/nginx/conf/ssl/thetruckstop.us/dhparam.pem;
  19. ssl_certificate /usr/local/nginx/conf/ssl/thetruckstop.us/thetruckstop.us-acme.cer;
  20. ssl_certificate_key /usr/local/nginx/conf/ssl/thetruckstop.us/thetruckstop.us-acme.key;
  21. include /usr/local/nginx/conf/ssl_include.conf;
  22.  
  23. http2_max_field_size 16k;
  24. http2_max_header_size 32k;
  25. # dual cert supported ssl ciphers
  26. ssl_ciphers EECDH+CHACHA20-draft:EECDH+CHACHA20:EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+ECDSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA+SHA384:EECDH+AES128:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!CAMELLIA;
  27. ssl_prefer_server_ciphers on;
  28. #add_header Alternate-Protocol 443:npn-spdy/3;
  29. #add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
  30. #add_header X-Frame-Options SAMEORIGIN;
  31. #add_header X-Xss-Protection "1; mode=block" always;
  32. #add_header X-Content-Type-Options "nosniff" always;
  33. #spdy_headers_comp 5;
  34. ssl_buffer_size 1369;
  35. ssl_session_tickets on;
  36.  
  37. # enable ocsp stapling
  38. resolver 8.8.8.8 8.8.4.4 valid=10m;
  39. resolver_timeout 10s;
  40. ssl_stapling on;
  41. ssl_stapling_verify on;
  42. ssl_trusted_certificate /usr/local/nginx/conf/ssl/thetruckstop.us/thetruckstop.us-acme.cer;
  43.  
  44. # ngx_pagespeed & ngx_pagespeed handler
  45. #include /usr/local/nginx/conf/pagespeed.conf;
  46. #include /usr/local/nginx/conf/pagespeedhandler.conf;
  47. #include /usr/local/nginx/conf/pagespeedstatslog.conf;
  48.  
  49. # limit_conn limit_per_ip 16;
  50. # ssi on;
  51.  
  52. access_log /home/nginx/domains/thetruckstop.us/log/access.log combined buffer=256k flush=5m;
  53. error_log /home/nginx/domains/thetruckstop.us/log/error.log;
  54.  
  55. root /home/nginx/domains/thetruckstop.us/public;
  56.  
  57. location /forum/ {
  58. index index.php index.html index.htm;
  59. try_files $uri $uri/ /forum/index.php?$uri&$args;
  60. }
  61.  
  62. location /forum/admin.php {
  63. auth_basic "Private";
  64. auth_basic_user_file /usr/local/nginx/conf/htpasswd_admin_php;
  65. include /usr/local/nginx/conf/php.conf;
  66. allow 127.0.0.1;
  67. allow 45.79.217.105;
  68. deny all;
  69. }
  70.  
  71. location /forum/install/data/ {
  72. internal;
  73. }
  74.  
  75. location /forum/install/templates/ {
  76. internal;
  77. }
  78.  
  79. location /forum/internal_data/ {
  80. internal;
  81. }
  82.  
  83. location /forum/library/ {
  84. internal;
  85. }
  86.  
  87. # xenforo 2 uncomment / remove hash from next 3 lines
  88. location /forum/src/ {
  89. internal;
  90. }
  91.  
  92. include /usr/local/nginx/conf/staticfiles.conf;
  93. include /usr/local/nginx/conf/php.conf;
  94. #include /usr/local/nginx/conf/drop.conf;
  95. #include /usr/local/nginx/conf/errorpage.conf;
  96. include /usr/local/nginx/conf/vts_server.conf;
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement