forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpassenger.nginx.site
More file actions
45 lines (39 loc) · 1.09 KB
/
passenger.nginx.site
File metadata and controls
45 lines (39 loc) · 1.09 KB
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
39
40
41
42
43
44
45
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/pangi.shiriculapo.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pangi.shiriculapo.com/privkey.pem;
server_name pangi.shiriculapo.com www.pangi.shiriculapo.com;
passenger_enabled on;
passenger_user macool;
passenger_app_env production;
passenger_ruby /home/macool/.rbenv/versions/2.3.0/bin/ruby;
root /home/macool/errbit/public;
error_page 500 502 503 504 /500.html;
keepalive_timeout 10;
client_max_body_size 4G;
# secure ssl
include snippets/secure-ssl.conf;
location ~ /.well-known {
allow all;
}
location ^~ /assets/ {
gzip_static on;
expires max;
add_header Cache-Control "public";
}
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1y;
access_log off;
gzip_static on;
add_header Cache-Control "public";
}
# CSS and Javascript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
gzip_static on;
add_header Cache-Control "public";
}
}