Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

nginx.conf

  • Loading branch information...
commit 9e39ab54f2928deb753803d0762f386417fad1eb 1 parent aab72b9
@tlevine authored
Showing with 15 additions and 21 deletions.
  1. +15 −21 nsa-debian/fs/etc/nginx/nginx.conf
View
36 nsa-debian/fs/etc/nginx/nginx.conf
@@ -1,8 +1,8 @@
user www-data;
-worker_processes 1;
+worker_processes 4;
pid /run/nginx.pid;
events {
- worker_connections 768;
+ worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
@@ -23,25 +23,19 @@ http {
listen 80;
server_name dadawarehouse.thomaslevine.com;
location / {
- root /lockers/tlevine_vol/dadawarehouse.thomaslevine.com;
- autoindex on;
- autoindex_exact_size off;
- default_type application/octet-stream;
- }
- }
-
- server {
- listen 80;
- server_name git.thomaslevine.com;
- location / {
- root /lockers/tlevine_vol/git.thomaslevine.com;
- index index.html index.htm index.csv index;
- autoindex on;
- autoindex_exact_size off;
-
- location ~.*/bin/.* {
- default_type application/octet-stream;
- }
+ root /home/tlevine/dadawarehouse.thomaslevine.com;
+ index index.html index.htm index.csv index;
+ autoindex on;
+ autoindex_exact_size off;
+ location /big {
+ default_type application/octet-stream;
+ }
+ location ~.*/bin/.* {
+ default_type application/octet-stream;
+ }
+ location ~^/small/[^/]*/.git.* {
+ # Don't serve these tiny git files.
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.