-
Notifications
You must be signed in to change notification settings - Fork 62
/
nginx-certbot.conf
49 lines (38 loc) · 1.06 KB
/
nginx-certbot.conf
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
46
47
48
49
user deploy;
worker_processes 4;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
}
http {
sendfile on;
server_tokens off;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_show_version_in_header off;
# Replace 'deploy' with your username.
passenger_ruby /home/deploy/.rbenv/shims/ruby;
server {
# Change this to your domain name.
server_name yoursite.example.com;
# Ensure this is the path to the public folder of the nemo code.
root /home/deploy/nemo/public;
passenger_enabled on;
rails_env production;
client_max_body_size 50m;
# Redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}