-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf.j2
42 lines (31 loc) · 872 Bytes
/
nginx.conf.j2
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
worker_processes auto;
events {
use epoll;
worker_connections 1024;
multi_accept on;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_max_body_size 100M;
access_log /dev/stdout;
error_log /dev/stdout;
server {
listen 80;
server_name mememas;
location / {
proxy_pass http://{{ HOST }}:{{ PORT }};
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /static/ {
alias /static/;
}
location /media/ {
alias /media/;
}
access_log /dev/stdout;
error_log /dev/stdout;
}
}