-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
50 lines (41 loc) · 1.38 KB
/
nginx.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
50
user ubuntu; # change this to be the user you are hosting your instance on
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
map_hash_bucket_size 128;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
reset_timedout_connection on;
access_log off;
error_log off;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name chemistry.mounthoodlodges.com; # replace with your actual domain
location / {
# Upgrade WebSockets
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'Upgrade';
# Increase header buffer
proxy_connect_timeout 10;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_pass http://127.0.0.1:7444; # change this to the port UltraViolet is listening on
# The small block below will block googlebot
if ($http_user_agent ~ (Googlebot)) {
return 403;
}
}
}
}