23 lines
531 B
Plaintext
23 lines
531 B
Plaintext
upstream {{ORBIT}}_sock {
|
|
server unix:{{ORBIT_SITES}}/{{ORBIT}}/tmp/unicorn.sock;
|
|
}
|
|
|
|
server {
|
|
listen {{PORT}};
|
|
root {{ORBIT_SITES}}/{{ORBIT}}/public;
|
|
server_name {{SERVER_NAME}};
|
|
|
|
client_max_body_size 500m;
|
|
|
|
location / {
|
|
try_files $uri $uri/index.html $uri.html @app;
|
|
}
|
|
|
|
location @app {
|
|
proxy_redirect off;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_connect_timeout 360;
|
|
proxy_pass http://{{ORBIT}}_sock;
|
|
}
|
|
} |