forked from hamidfzm/pfont
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
35 lines (30 loc) · 891 Bytes
/
nginx.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
server {
listen 80;
server_name pfont.hamidfzm.ir pfont.ir www.pfont.ir;
location / {
include uwsgi_params;
uwsgi_param UWSGI_APPID pfont;
uwsgi_pass unix:/tmp/uwsgi.sock;
uwsgi_param UWSGI_CHDIR /var/www/pfont;
uwsgi_param UWSGI_MODULE deploy;
uwsgi_param UWSGI_CALLABLE app;
}
location /static {
alias /var/www/pfont/static/;
access_log off;
expires 30d;
## No need to bleed constant updates. Send the all shebang in one
## fell swoop.
tcp_nodelay off;
## Set the OS file cache.
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 45s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
}
}
server {
listen 80;
server_name librefont.ir www.librefont.ir;
return 301 http://pfont.ir$request_uri;
}