-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx_prod.conf
46 lines (36 loc) · 897 Bytes
/
nginx_prod.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
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
# redirect all traffic to https
server {
listen 80;
location / {
return 301 https://$host$request_uri;
}
}
# main server block
server {
listen 443 ssl;
include /config/nginx/ssl.conf;
root /config/www;
index index.html index.htm index.php;
# main location
location / {
ssi on;
}
# thumbar proxy
location /thumbor/ {
proxy_pass http://wip.parkerbritt.com:8001/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
# Includes virtual hosts configs.
#include /config/nginx/site-confs/*.conf;
}
daemon off;
pid /run/nginx.pid;