-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.conf
More file actions
55 lines (46 loc) · 1.54 KB
/
service.conf
File metadata and controls
55 lines (46 loc) · 1.54 KB
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
51
52
53
54
55
server {
listen 80;
access_log /var/log/front.access.log combined;
error_log /var/log/front.error.log error;
proxy_set_header Host $http_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_redirect off;
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 4;
gzip_http_version 1.0;
gzip_min_length 1280;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp;
gzip_vary on;
client_max_body_size 32M;
location /static {
alias /static/;
autoindex off;
expires 90d;
add_header Cache-Control "public";
add_header Vary Accept-Encoding;
access_log off;
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 45s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
}
location /media {
alias /media/;
autoindex off;
expires 90d;
add_header Cache-Control "public";
add_header Vary Accept-Encoding;
access_log off;
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 45s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
}
location / {
include uwsgi_params;
uwsgi_pass server<uwsgi_server_placeholder>;
}
}