diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-05-04 17:09:45 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-05-04 17:17:54 -0400 |
commit | 3ecb07ed618edead91b205c479fcf56d61538bad (patch) | |
tree | 73350a454bf5516f8617f41742efd4322d283f95 | |
parent | d5fbf70a06d37c914de2fd89fc9fff0736146a1c (diff) | |
download | bnewnet-3ecb07ed618edead91b205c479fcf56d61538bad.tar.gz bnewnet-3ecb07ed618edead91b205c479fcf56d61538bad.zip |
commit current nginx config
-rw-r--r-- | nginx-config/bnewbold.net | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nginx-config/bnewbold.net b/nginx-config/bnewbold.net new file mode 100644 index 0000000..579e37c --- /dev/null +++ b/nginx-config/bnewbold.net @@ -0,0 +1,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; + } +} + |