MKANET

Untitled

Jul 17th, 2023 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1.  
  2. worker_processes auto;
  3.  
  4. events {
  5. worker_connections 1024;
  6. }
  7.  
  8. http {
  9. ssl_certificate ./ssl/fullchain.cer;
  10. ssl_certificate_key ./ssl/cert.key;
  11. ssl_protocols TLSv1.2 TLSv1.3;
  12. ssl_prefer_server_ciphers on;
  13. ssl_ciphers EECDH+AESGCM:EDH+AESGCM:!aNULL:!eNULL:!MD5:!DSS:!EXP:!ADH:!LOW:!MEDIUM;
  14. resolver_timeout 5s;
  15. include mime.types;
  16. default_type application/octet-stream;
  17. sendfile on;
  18. keepalive_timeout 65;
  19. autoindex_localtime on;
  20. allow all;
  21. map $http_upgrade $connection_upgrade {
  22. default upgrade;
  23. '' close;
  24. }
  25.  
  26. server {
  27.  
  28. listen 80;
  29. server_name localhost;
  30. return 301 https://$host$request_uri;
  31. }
  32.  
  33. server {
  34. listen 443 ssl http2;
  35. listen [::]:443 ssl http2;
  36. server_name threadfin.mka.net;
  37. location / {
  38. proxy_pass http://192.168.1.2:34400;
  39. proxy_http_version 1.1;
  40. proxy_set_header Upgrade $http_upgrade;
  41. proxy_set_header Connection "upgrade";
  42. }
  43. }
  44.  
  45.  
  46. #Root Domain
  47. server {
  48. listen 443 ssl http2;
  49. listen [::]:443 ssl http2;
  50. server_name_in_redirect off;
  51. server_name www.mka.net mka.net;
  52. log_not_found off;
  53.  
  54. location / {
  55. root /inetpub/wwwroot;
  56. index index.html index.htm;
  57. }
  58. }
  59.  
  60. }
Advertisement
Add Comment
Please, Sign In to add comment