Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443;
- ssl on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- #ssl_ciphers 'AES256+EECDH:AES256+EDH';
- ssl_prefer_server_ciphers on;
- ssl_session_cache shared:SSL:10m;
- ssl_certificate *yourcrtfile*
- ssl_certificate_key *yourkeyfile*;
- server_name *yourservername*;
- access_log /var/log/nginx/*yourappname*.access.log;
- error_log /var/log/nginx/*yourappname*.error.log;
- keepalive_timeout 0;
- location = /blank.gif { empty_gif;}
- location = /favicon.ico { empty_gif;}
- location ~ /\.html { allow all;}
- location ~ /\.py { deny all;}
- location / {
- root *yourstaticdirectory*;
- client_max_body_size 2048m;
- client_body_buffer_size 128k;
- try_files $uri @uwsgi;
- }
- location /static {
- alias *alias to static*;
- }
- location /media {
- alias *alias to media*;
- }
- location @uwsgi{
- client_max_body_size 2048m;
- client_body_buffer_size 128k;
- include uwsgi_params;
- uwsgi_param HTTPS on;
- uwsgi_pass 127.0.0.1:*uwsgitcpport*;
- uwsgi_read_timeout 300;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement