update readme, dont use __PREFIX__ in apache/nginx config
This commit is contained in:
parent
134d340790
commit
d658da92c8
4 changed files with 125 additions and 95 deletions
|
|
@ -13,24 +13,25 @@ server {
|
|||
#gzip_types text/plain text/css application/json text/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
|
||||
#gzip_buffers 16 8k;
|
||||
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
||||
|
||||
#server_name pandora.YOURDOMAIN.COM;
|
||||
|
||||
listen 80 default;
|
||||
#server_name pandora.example.com;
|
||||
|
||||
access_log /var/log/nginx/pandora.access.log;
|
||||
error_log /var/log/nginx/pandora.error.log;
|
||||
|
||||
location /favicon.ico {
|
||||
root __PREFIX__/static;
|
||||
root /srv/pandora/static;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
root __PREFIX__;
|
||||
autoindex on;
|
||||
root /srv/pandora;
|
||||
autoindex off;
|
||||
}
|
||||
location /data/ {
|
||||
internal;
|
||||
root __PREFIX__;
|
||||
root /srv/pandora;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
@ -40,7 +41,7 @@ server {
|
|||
proxy_read_timeout 90; #should be in sync with gunicorn timeout
|
||||
proxy_connect_timeout 90; #should be in sync with gunicorn timeout
|
||||
if (!-f $request_filename) {
|
||||
proxy_pass http://127.0.0.1:2620;
|
||||
proxy_pass http:/127.0.0.1:2620;
|
||||
break;
|
||||
}
|
||||
client_max_body_size 32m;
|
||||
|
|
@ -48,12 +49,12 @@ server {
|
|||
|
||||
error_page 404 /404.html;
|
||||
location /404.html {
|
||||
root __PREFIX__/static/html;
|
||||
root /srv/pandora/static/html;
|
||||
}
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location /50x.html {
|
||||
root __PREFIX__/static/html;
|
||||
root /srv/pandora/static/html;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue