2019-11-23 18:11:18 +01:00
|
|
|
user decidim;
|
2019-11-15 18:00:26 +01:00
|
|
|
pid /run/nginx.pid;
|
|
|
|
worker_processes 1;
|
|
|
|
error_log /dev/stderr warn;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
access_log off;
|
|
|
|
server_tokens off;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
sendfile on;
|
2020-02-07 18:27:15 +01:00
|
|
|
tcp_nodelay on;
|
2019-11-15 18:00:26 +01:00
|
|
|
send_timeout 300;
|
|
|
|
|
2020-06-21 14:51:10 +02:00
|
|
|
passenger_root /usr/local/lib/passenger;
|
2019-11-23 18:11:18 +01:00
|
|
|
passenger_ruby /usr/local/bin/ruby;
|
|
|
|
|
2019-11-15 18:00:26 +01:00
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
passenger_enabled on;
|
2020-10-22 21:00:05 +02:00
|
|
|
passenger_set_header Host $http_x_forwarded_host;
|
2019-11-15 18:00:26 +01:00
|
|
|
rails_env production;
|
|
|
|
|
|
|
|
root /srv/decidim-app/public;
|
|
|
|
}
|
|
|
|
}
|