Unicorn and Nginx configs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user