Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www-data;
- worker_processes 8;
- worker_rlimit_nofile 8192;
- pid /var/run/nginx.pid;
- events {
- worker_connections 2048;
- use epoll;
- multi_accept on;
- }
- http {
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- upstream sdn_api{
- server unix:/tmp/gunicorn.sock;
- }
- server {
- listen 443 ssl default_server;
- ssl on;
- ssl_certificate /etc/ssl/certs/api.sdninja.com.crt;
- ssl_certificate_key /etc/ssl/private/api.sdninja.com.key;
- ssl_ciphers RC4:HIGH:!kEDH:!aNULL:!MD5:!EXP;
- ssl_prefer_server_ciphers on;
- ssl_session_cache shared:SSL:10m;
- server_name api.*****.com;
- access_log /var/log/nginx/sdn_api.log;
- location / {
- proxy_pass http://sdn_api;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement