Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1.  
  2. user nginx;
  3. worker_processes 1;
  4.  
  5. error_log /var/log/nginx/error.log warn;
  6. pid /var/run/nginx.pid;
  7.  
  8.  
  9. events {
  10. worker_connections 1024;
  11. }
  12.  
  13.  
  14. http {
  15. include /etc/nginx/mime.types;
  16. default_type application/octet-stream;
  17. add_header Cache-Control no-cache;
  18. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  19. '$status $body_bytes_sent "$http_referer" '
  20. '"$http_user_agent" "$http_x_forwarded_for"';
  21.  
  22. access_log /var/log/nginx/access.log main;
  23.  
  24. sendfile on;
  25. #tcp_nopush on;
  26.  
  27. keepalive_timeout 65;
  28.  
  29. #gzip on;
  30.  
  31. #include /etc/nginx/conf.d/*.conf;
  32.  
  33. # the upstream component nginx needs to connect to
  34. upstream django {
  35. server unix:///home/aggosh/public_html/***/uwsgi_nginx.sock; # f$
  36. # server 127.0.0.1:8001; # for a web port socket (we'll use this fi$
  37. }
  38.  
  39. # configuration of the server
  40. server {
  41. # the port your site will be served on
  42. listen 80;
  43. # the domain name it will serve for
  44. server_name ****; # substitute your machine's IP address or F$
  45. charset utf-8;
  46.  
  47. # max upload size
  48. client_max_body_size 75M; # adjust to taste
  49.  
  50. # Django media
  51. location /media {
  52. alias /home/aggosh/public_html/***/media; # your Django pro$
  53. }
  54.  
  55. location /static {
  56. alias /home/aggosh/public_html/***/static; # your Django pro$
  57. }
  58.  
  59. # Finally, send all non-media requests to the Django server.
  60. location / {
  61. uwsgi_pass django;
  62. include /home/aggosh/public_html/***/deploy/uwsgi_params$
  63. }
  64. }
  65.  
  66.  
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement