server {
listen 80;
server_name ..ru;
return 301
https://..ru$request_uri;
}
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/bundle.crt;
ssl_certificate_key /etc/ssl/..ru.key;
server_name .ru;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
location = /favicon.ico {
root /root/favicon;
}
location = /favicon.png {
root /root/favicon;
}
location /static/ {
root /root/SocialDir;
}
location = /manifest.json {
root /root/favicon;
}
location /Images/ {
root /root/SocialDir;
}
location / {
include proxy_params;
proxy_pass
http://unix:/run/gunicorn.sock;
}
}