Advertisement
Guest User

Untitled

a guest
Oct 13th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  2. DEFAULT_FROM_EMAIL = 'site@gmail.com'
  3. EMAIL_USE_TLS = True
  4. EMAIL_HOST = 'smtp.gmail.com'
  5. EMAIL_HOST_USER = 'site@gmail.com'
  6. EMAIL_HOST_PASSWORD = '123456'
  7. EMAIL_PORT = 587
  8.  
  9. xx.xx.xxx.xxx - - [13/Oct/2016:20:15:59 +0300] "GET / HTTP/1.1" 200 12659 "http://eximo.fabro.com.ua/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.27$3.0.2785.143 Safari/537.36"
  10. xx.xx.xxx.xxx - - [13/Oct/2016:20:17:05 +0300] "POST /order/ HTTP/1.1" 500 38 "http://eximo.fabro.com.ua/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.$me/53.0.2785.143 Safari/537.36"
  11.  
  12. Ubuntu 14.04.5 LTS
  13.  
  14. nginx version: nginx/1.4.6 (Ubuntu)
  15. built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  16. TLS SNI support enabled
  17. configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module
  18.  
  19. 2.0.13.1
  20.  
  21. [uwsgi]
  22. project = site
  23. base = /home/site
  24.  
  25. chdir = %(base)/site/%(project)
  26. home = /env/site
  27. module = project.wsgi:application
  28.  
  29. master = true
  30. processes = 5
  31.  
  32. pidfile = %(base)/site/%(project)/site.pid
  33.  
  34. socket = %(base)/site/%(project)/site.sock
  35. chmod-socket = 664
  36. vacuum = true
  37.  
  38. server {
  39. listen *:80;
  40. listen [::]:80;
  41. server_name www.site.com.ua;
  42. rewrite ^(.*)$ http://site.com.ua$1 permanent;
  43. }
  44.  
  45. server {
  46. listen *:80;
  47. listen [::]:80;
  48. server_name site.com.ua;
  49.  
  50.  
  51. location = /favicon.ico { access_log off; log_not_found off; }
  52.  
  53. location /static/ {
  54. root /home/site/site/site/project;
  55. access_log off;
  56. expires 3w;
  57. # add_header Cache-Control "max-age=1209600";
  58. add_header Cache-Control public;
  59. }
  60.  
  61. location /media/ {
  62. root /home/site/site/site/project;
  63. access_log off;
  64. expires 12w;
  65. # add_header Cache-Control "max-age=5258000";
  66. add_header Cache-Control public;
  67. }
  68.  
  69. location / {
  70. include uwsgi_params;
  71. uwsgi_pass unix:/home/site/site/site/site.sock;
  72. }
  73. }
  74.  
  75. gzip on;
  76. gzip_disable "msie6";
  77.  
  78. gzip_vary on;
  79. gzip_proxied any;
  80. gzip_comp_level 6;
  81. gzip_buffers 16 8k;
  82. gzip_http_version 1.1;
  83. gzip_min_length 256;
  84. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  85. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-fon$
  86.  
  87. #mail {
  88. # # See sample authentication script at:
  89. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  90. #
  91. # # auth_http localhost/auth.php;
  92. # # pop3_capabilities "TOP" "USER";
  93. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  94. #
  95. # server {
  96. # listen localhost:110;
  97. # protocol pop3;
  98. # proxy on;
  99. # }
  100. #
  101. # server {
  102. # listen localhost:143;
  103. # protocol imap;
  104. # proxy on;
  105. # }
  106. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement