upstream vitamin { server unix:///mnt/www/vitamin/shared/tmp/sockets/puma.sock; }
server { listen 443 ssl; server_name xn--n8jhv5b1dva9290n.com; root /mnt/www/vitamin/shared/public;
location / { proxy_pass http://vitamin; # match the name of upstream directive which is defined above proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }