Advertisement
my_pastebin_account

Untitled

Jun 6th, 2022
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. user nginx;
  2. worker_processes 1;
  3.  
  4. error_log /var/log/nginx/error.log warn;
  5. pid /var/run/nginx.pid;
  6.  
  7.  
  8. events {
  9. worker_connections 1024;
  10. }
  11.  
  12.  
  13. http {
  14. include /etc/nginx/mime.types;
  15. default_type application/octet-stream;
  16.  
  17. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  18. '$status $body_bytes_sent "$http_referer" '
  19. '"$http_user_agent" "$http_x_forwarded_for"';
  20.  
  21. access_log /var/log/nginx/access.log main;
  22.  
  23. sendfile on;
  24. #tcp_nopush on;
  25.  
  26. keepalive_timeout 65;
  27.  
  28. #gzip on;
  29.  
  30. include /etc/nginx/conf.d/*.conf;
  31.  
  32. upstream backend {
  33. server backend.ru:9443;
  34. }
  35.  
  36. server {
  37. listen 443;
  38. server_name localhost;
  39.  
  40. location / {
  41. proxy_pass https://backend;
  42. proxy_set_header Host $host;
  43. }
  44.  
  45. sspi on;
  46. sspi_certificate 0x19LDKV87SDFKZ8VS8DF9A8D7F0CD;
  47. sspi_protocols TLSv1.2;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement