From 38a8dfe75f626958a3f49b05142e31cf946b1845 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 9 Jan 2014 16:15:01 -0500 Subject: Move general conf to nginx.inc.conf --- nginx.conf | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'nginx.conf') diff --git a/nginx.conf b/nginx.conf index 097c64d..7d35929 100644 --- a/nginx.conf +++ b/nginx.conf @@ -49,33 +49,7 @@ http { server { listen 8080; root www; - add_header Cache-Control public; - location /dump/ { - expires 1y; - location ~ ^/dump/(bgm|sfx)/ { add_header X-Content-Duration "0"; } - } - - location ~ ^/(css/font|js/lib|scripts)/ { - expires 1d; - } - - location / { - if ($http_cookie !~ "warned") { - return 301 /warn.html; - } - } - - location /setcookie.html { - add_header Set-Cookie "warned=1; Expires=Tue, 19 Jan 2038 00:00:00 GMT; HttpOnly"; - return 301 /; - } - - location /warn.html { - break; - } - - expires 5s; - add_header X-UA-Compatible "IE=edge"; + include nginx.inc.conf; } } # vim:ft=nginx: -- cgit v1.2.3-54-g00ecf