1
0
Fork 0
fatkitten/config/nginx.conf

29 lines
625 B
Nginx Configuration File
Raw Normal View History

2013-07-19 12:55:44 +00:00
upstream pastekitten_unicorns {
server unix:/tmp/pastekitten.unicorn.sock fail_timeout=0;
2013-07-12 11:20:07 +00:00
}
2013-07-12 10:54:08 +00:00
server {
2013-07-25 09:42:54 +00:00
listen pastekitten.com:80;
server_name pastekitten.com www.pastekitten.com pm.localhots.xxx;
2013-07-19 12:55:44 +00:00
root /home/www/apps/pastekitten/current;
2013-07-12 11:20:07 +00:00
client_max_body_size 10M;
keepalive_timeout 5;
2013-07-12 10:54:08 +00:00
location ^~ /public/ {
gzip_static on;
add_header Cache-Control public;
}
2013-07-12 11:20:07 +00:00
location / {
try_files $uri, @app;
}
location @app {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
2013-07-19 12:55:44 +00:00
proxy_pass http://pastekitten_unicorns;
2013-07-12 11:20:07 +00:00
}
2013-07-12 10:54:08 +00:00
}