diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 1159e277..d647654a 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -41,13 +41,30 @@ Change the default URL options' `:host` in `config/environments/production.rb` t Edit `~/nginx/conf/nginx.conf` like so: ``` -server { +daemon off; +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + set_real_ip_from 127.0.0.1; + set_real_ip_from ::1; + real_ip_header X-Forwarded-For; + include mime.types; + passenger_root PASSENGER_ROOT_PATH; # passenger-config --root + default_type application/octet-stream; + + server { + passenger_ruby RUBY_PATH; # which ruby listen PORT; # Choose an open port (see instructions below)! server_name ACCOUNT.SERVER.uberspace.de; root /home/ACCOUNT/rails/current/public; passenger_enabled on; # Be sure to remove or comment the `location / { ... }` block! + } } ``` @@ -182,4 +199,4 @@ Thunderbird: ## Additional information -- If you ever have to inspect server logs, they're here: `/home/ACCOUNT/nginx/logs/error.log` \ No newline at end of file +- If you ever have to inspect server logs, they're here: `/home/ACCOUNT/nginx/logs/error.log`