Guest User

Untitled

a guest
Nov 27th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1.  
  2. #user http;
  3. worker_processes 1;
  4.  
  5.  
  6. #error_log logs/error.log;
  7. #error_log logs/error.log notice;
  8. #error_log logs/error.log info;
  9.  
  10. #pid logs/nginx.pid;
  11.  
  12.  
  13. events {
  14. worker_connections 1024;
  15. }
  16.  
  17.  
  18. http {
  19. include mime.types;
  20. default_type application/octet-stream;
  21.  
  22. sendfile on;
  23. keepalive_timeout 65;
  24.  
  25. server {
  26. server_name yourdomain.com www.yourdomain.com; # change to your domain name
  27. types_hash_max_size 2048;
  28. types_hash_bucket_size 64;
  29.  
  30. location / {
  31. proxy_pass http://localhost:1337; # strapi server port
  32. proxy_set_header Host $host;
  33. proxy_set_header X-Real-IP $remote_addr;
  34. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35. }
  36. }
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment