diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-05-04 17:18:21 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-05-04 17:18:21 -0400 |
commit | 1d9ad7e21e8498e8d26ed27c476b8e00c8212597 (patch) | |
tree | 83f1a501ae63385047af39e811ac2844fa647d92 /nginx-config | |
parent | 3ecb07ed618edead91b205c479fcf56d61538bad (diff) | |
download | bnewnet-1d9ad7e21e8498e8d26ed27c476b8e00c8212597.tar.gz bnewnet-1d9ad7e21e8498e8d26ed27c476b8e00c8212597.zip |
nginx: config for pelican
Diffstat (limited to 'nginx-config')
-rw-r--r-- | nginx-config/bnewbold.net | 39 |
1 files changed, 10 insertions, 29 deletions
diff --git a/nginx-config/bnewbold.net b/nginx-config/bnewbold.net index 579e37c..daf71d3 100644 --- a/nginx-config/bnewbold.net +++ b/nginx-config/bnewbold.net @@ -2,40 +2,21 @@ server { listen 80; listen [::]:80; - server_name bnewbold.net www.bnewbold.net; + server_name bnewbold.net www.bnewbold.net next.bnewbold.net; + + access_log /var/log/nginx/bnewnet.access.log; + error_log /var/log/nginx/bnewnet.error.log; - access_log /var/log/nginx/access.log; - location /robots.txt { + location / { 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; + + # Temporary mirror of old photos stuff + location /photos/ { + root /srv/http/bnewbold.net/adelie_backup/; + index index.html index.htm; } } |