-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnginx.conf.tpl
38 lines (30 loc) · 1.02 KB
/
nginx.conf.tpl
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
upstream mezzanine {
server mezzanine:8000;
}
server {
# For a more complex example, see:
# https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/deploy/nginx.conf.template
listen 8080 default_server;
server_name _;
location / {
proxy_redirect off;
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;
proxy_pass http://mezzanine;
}
location /static/ {
root /srv/mezzanine/MEZZANINE_PROJECT/;
}
location /robots.txt {
root /srv/mezzanine/MEZZANINE_PROJECT/static;
access_log off;
log_not_found off;
}
location /favicon.ico {
root /srv/mezzanine/MEZZANINE_PROJECT/static/img;
access_log off;
log_not_found off;
}
}