Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-com
marketo-tools
Commits
196a79a5
Commit
196a79a5
authored
Nov 24, 2015
by
Robert Speicher
Browse files
Add nginx and unicorn configs
parent
af3c3c1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/nginx.conf
0 → 100644
View file @
196a79a5
worker_processes
1
;
daemon
off
;
pid
tmp/nginx
.pid
;
error_log
stderr
;
events
{
worker_connections
1024
;
}
http
{
include
mime.types
;
default_type
application/octet-stream
;
access_log
logs/access
.log
;
sendfile
on
;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout
65
;
#gzip on;
proxy_temp_path
proxy_temp
;
client_body_temp_path
client_body_temp
;
uwsgi_temp_path
uwsgi_temp
;
fastcgi_temp_path
fastcgi_temp
;
scgi_temp_path
scgi_temp
;
client_max_body_size
0
;
upstream
unicorn_server
{
# TODO (rspeicher): Change path
server
unix:/path/to/app/tmp/sockets/unicorn.sock
fail_timeout=0
;
}
server
{
listen
80
;
server_name
localhost
;
location
/
{
try_files
$uri
@app
;
}
location
@app
{
proxy_redirect
off
;
proxy_set_header
Host
$http_host
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-Proto
$scheme
;
proxy_set_header
X-Frame-Options
SAMEORIGIN
;
proxy_pass
http://unicorn_server
;
}
}
}
config/unicorn.rb
0 → 100644
View file @
196a79a5
# TODO (rspeicher): Change path
@dir
=
"/path/to/app/"
worker_processes
2
working_directory
@dir
timeout
30
listen
"
#{
@dir
}
tmp/sockets/unicorn.sock"
,
backlog:
64
pid
"
#{
@dir
}
tmp/pids/unicorn.pid"
stderr_path
"
#{
@dir
}
log/unicorn.stderr.log"
stdout_path
"
#{
@dir
}
log/unicorn.stdout.log"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment