blob: f89a75fb9665d054448ae41a66743fd733872116 (
plain)
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
|
server {
listen 80;
listen [::]:80;
server_name piccast.memeschemes.com piccastapp.com www.piccastapp.com;
access_log /var/log/nginx/piccast_access.log;
error_log /var/log/nginx/piccast_error.log;
gzip on;
gzip_http_version 1.1;
gzip_min_length 1000;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain application/xml application/json;
gzip_disable "MSIE [1-6]\.";
gzip_disable "wget";
location / {
# Fallthrough to django if file not found
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
if (!-f $request_filename) {
fastcgi_pass unix:/srv/http/piccastapp.com/django.sock;
break;
}
root /srv/http/piccastapp.com/www;
index index.html index.htm;
}
}
|