blob: 579e37caf309230c71017a125aee1cfc333abeda (
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
41
|
server {
listen 80;
listen [::]:80;
server_name bnewbold.net www.bnewbold.net;
access_log /var/log/nginx/access.log;
location /robots.txt {
root /srv/http/bnewbold.net/www/;
index index.html index.htm;
}
location /static {
alias /srv/http/bnewbold.net/static/;
}
location /pub {
alias /srv/http/bnewbold.net/www/pub;
}
location /.well-known {
alias /home/bnewbold/.well-known;
}
location /django-admin {
alias /srv/http/bnewbold.net/django-admin;
}
#rewrite ^/admin(.*) https://www.bnewbold.net/admin$1 permanent;
location / {
fastcgi_pass unix:/srv/http/bnewbold.net/django.sock;
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;
}
}
|