install_r45_on_ubuntu_1804l.../nginx4-5.conf

23 lines
531 B
Plaintext
Raw Normal View History

2022-08-24 08:09:20 +00:00
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;
}
}