-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.rails
executable file
·38 lines (33 loc) · 985 Bytes
/
default.rails
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
upstream app {
server unix:/home/deploy/[PROJECT_NAME]/shared/tmp/sockets/puma.sock fail_timeout=0;
}
server {
listen 80;
server_name [ELASTIC_IP_ADDRESS // HOST NAME];
try_files $uri @app;
root /home/deploy/[PROJECT_NAME]/current/public;
location @app {
proxy_pass http://app;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}