postal/nginx.conf
2018-05-08 10:50:33 -04:00

24 lines
523 B
Nginx Configuration File

server {
listen 80;
root /opt/postal/public;
location / {
client_max_body_size 50M;
try_files $uri $uri/index.html $uri.html @puma;
}
location /assets {
add_header Cache-Control max-age=3600;
}
location @puma {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://postal:5000;
}
}