Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
- DEFAULT_FROM_EMAIL = 'site@gmail.com'
- EMAIL_USE_TLS = True
- EMAIL_HOST = 'smtp.gmail.com'
- EMAIL_HOST_USER = 'site@gmail.com'
- EMAIL_HOST_PASSWORD = '123456'
- EMAIL_PORT = 587
- 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"
- 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"
- Ubuntu 14.04.5 LTS
- nginx version: nginx/1.4.6 (Ubuntu)
- built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
- TLS SNI support enabled
- 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
- 2.0.13.1
- [uwsgi]
- project = site
- base = /home/site
- chdir = %(base)/site/%(project)
- home = /env/site
- module = project.wsgi:application
- master = true
- processes = 5
- pidfile = %(base)/site/%(project)/site.pid
- socket = %(base)/site/%(project)/site.sock
- chmod-socket = 664
- vacuum = true
- server {
- listen *:80;
- listen [::]:80;
- server_name www.site.com.ua;
- rewrite ^(.*)$ http://site.com.ua$1 permanent;
- }
- server {
- listen *:80;
- listen [::]:80;
- server_name site.com.ua;
- location = /favicon.ico { access_log off; log_not_found off; }
- location /static/ {
- root /home/site/site/site/project;
- access_log off;
- expires 3w;
- # add_header Cache-Control "max-age=1209600";
- add_header Cache-Control public;
- }
- location /media/ {
- root /home/site/site/site/project;
- access_log off;
- expires 12w;
- # add_header Cache-Control "max-age=5258000";
- add_header Cache-Control public;
- }
- location / {
- include uwsgi_params;
- uwsgi_pass unix:/home/site/site/site/site.sock;
- }
- }
- gzip on;
- gzip_disable "msie6";
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- gzip_min_length 256;
- # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- 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$
- #mail {
- # # See sample authentication script at:
- # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
- #
- # # auth_http localhost/auth.php;
- # # pop3_capabilities "TOP" "USER";
- # # imap_capabilities "IMAP4rev1" "UIDPLUS";
- #
- # server {
- # listen localhost:110;
- # protocol pop3;
- # proxy on;
- # }
- #
- # server {
- # listen localhost:143;
- # protocol imap;
- # proxy on;
- # }
- #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement