Unicorn and Nginx configs

This commit is contained in:
Gregory Eremin
2013-07-12 17:54:08 +07:00
parent ce91297ee0
commit 9dc851b95e
3 changed files with 26 additions and 5 deletions
+14
View File
@@ -0,0 +1,14 @@
server {
listen pm.localhots.xxx:80;
server_name pm.localhots.xxx;
root /home/www/apps/pastemaster/current;
location ^~ /public/ {
gzip_static on;
add_header Cache-Control public;
}
try_files $uri;
client_max_body_size 10M;
keepalive_timeout 10;
}
+9
View File
@@ -0,0 +1,9 @@
working_directory '/home/www/apps/pastemaster/current'
worker_processes 2
timeout 10
listen '/tmp/pastemaster.unicorn.sock', backlog: 64
pid '/tmp/pastemaster.unicorn.pid'
stderr_path '/dev/null'
stdout_path '/dev/null'