-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnginx.example
More file actions
32 lines (24 loc) · 842 Bytes
/
nginx.example
File metadata and controls
32 lines (24 loc) · 842 Bytes
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
server {
listen 80 default_server;
# listen [::]:80 default_server;
server_name _;
charset utf-8;
client_max_body_size 75M;
access_log /var/log/nginx/gonder.access.log;
error_log /var/log/nginx/gonder.error.log;
location / {
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_set_header HOST $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_read_timeout 5m;
proxy_connect_timeout 5m;
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
}
location /files {
alias /home/gonder/files;
expires max;
}
}