summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorUbuntu <ubuntu@ubuntu-desktop.(none)>2010-05-18 05:45:42 +0200
committerUbuntu <ubuntu@ubuntu-desktop.(none)>2010-05-18 05:45:42 +0200
commitb2d6f36d26545f958f3cae8e386d617eab27e4d0 (patch)
treefd330952cca0092639daf70923ec657dff95c0a3 /conf
parent6b873d224ea2d16668d92bbebad0d805ecd58f5d (diff)
Added nginx.conf
Diffstat (limited to 'conf')
-rw-r--r--conf/nginx.conf46
1 files changed, 46 insertions, 0 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
new file mode 100644
index 0000000..bbab6f0
--- /dev/null
+++ b/conf/nginx.conf
@@ -0,0 +1,46 @@
+user www-data;
+worker_processes 5;
+
+error_log /var/log/nginx/error.log;
+pid /var/run/nginx.pid;
+
+events {
+ worker_connections 1024;
+ # multi_accept on;
+}
+
+http {
+ include /etc/nginx/mime.types;
+
+ access_log /var/log/nginx/access.log;
+
+ sendfile on;
+ #tcp_nopush on;
+
+ #keepalive_timeout 0;
+ keepalive_timeout 65;
+ tcp_nodelay on;
+
+ gzip on;
+ gzip_disable "MSIE [1-6]\.(?!.*SV1)";
+
+ include /etc/nginx/conf.d/*.conf;
+
+ server {
+ listen 80;
+
+ location ^~* ^/(avatars|images)/ {
+ root /home/ubuntu/dumpfm;
+ expires 30d;
+ }
+
+ location ^~* ^/static/ {
+ root /home/ubuntu/dumpfm;
+ expires 30m;
+ }
+
+ location / {
+ proxy_pass http://127.0.0.1:8080;
+ }
+ }
+}