Commit 1ef2c025 authored by Robert Speicher's avatar Robert Speicher 🇳🇱

Remove now-unneeded config dir

parent 930f9a11
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;
}
}
}
# TODO (rspeicher): Change path
dir = "/path/to/app/"
worker_processes 2
working_directory dir
timeout 30
listen File.join(dir, %w(tmp sockets unicorn.sock)), backlog: 64
pid File.join(dir, %w(tmp pids unicorn.pid))
stderr_path File.join(dir, %w(log unicorn.stderr.log))
stdout_path File.join(dir, %w(log unicorn.stdout.log))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment