You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.3 KiB
61 lines
1.3 KiB
8 years ago
|
daemon off;
|
||
|
error_log /dev/stdout info;
|
||
|
|
||
|
user foreman;
|
||
|
worker_processes 1;
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|
||
|
|
||
|
http {
|
||
|
passenger_root /src/passenger;
|
||
|
passenger_ruby /usr/bin/ruby;
|
||
|
|
||
|
include mime.types;
|
||
|
default_type application/octet-stream;
|
||
|
|
||
|
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||
|
# '$status $body_bytes_sent "$http_referer" '
|
||
|
# '"$http_user_agent" "$http_x_forwarded_for"';
|
||
|
|
||
|
#access_log logs/access.log main;
|
||
|
|
||
|
sendfile on;
|
||
|
#tcp_nopush on;
|
||
|
|
||
|
#keepalive_timeout 0;
|
||
|
keepalive_timeout 65;
|
||
|
|
||
|
#gzip on;
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
server_name localhost;
|
||
|
|
||
|
location / {
|
||
|
root html;
|
||
|
index index.html index.htm;
|
||
|
}
|
||
|
|
||
|
# redirect server error pages to the static page /50x.html
|
||
|
#
|
||
|
error_page 500 502 503 504 /50x.html;
|
||
|
location = /50x.html {
|
||
|
root html;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
server_name foreman-web;
|
||
|
root /src/foreman/public;
|
||
|
|
||
|
# You must explicitly set 'passenger_enabled on', otherwise
|
||
|
# Passenger won't serve this app.
|
||
|
passenger_enabled on;
|
||
|
rails_env production;
|
||
|
}
|
||
|
}
|