Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@noc /opt/noc# cat /usr/local/etc/nginx/nginx.conf
- events { worker_connections 1024; }
- worker_processes 2;
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 15;
- server {
- listen 80;
- server_name noc;
- location /media/ {
- alias /opt/noc/contrib/lib/django/contrib/admin/media/;
- gzip on;
- gzip_types text/css text/x-js;
- }
- location /static/ {
- alias /opt/noc/static/;
- gzip on;
- gzip_types text/css text/x-js;
- }
- location / {
- proxy_pass http://127.0.0.1:8000/;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement