Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cloud:openstack:dashboard [2019/05/11 21:54]
owlbook
cloud:openstack:dashboard [2019/05/13 15:48] (current)
owlbook
Line 48: Line 48:
     location ~ /​dashboard/​(header|api|auth)/​ {     location ~ /​dashboard/​(header|api|auth)/​ {
         rewrite ^/​dashboard(.*)$ $1 last;         rewrite ^/​dashboard(.*)$ $1 last;
 +    }
 +
 +    location /​dashboard/​static/​ {
 +      alias /​usr/​share/​openstack-dashboard/​static/;​
 +    }
 +}
 +</​file>​
 +
 +А потом ты обращаешься к опытным джангистам и они выгугливают тебе решение со второй ссылки. Уруру. Хвала специалистам:​
 +
 +<file nginx /​etc/​nginx/​conf.d/​dashboard.conf>​
 +server {
 +    listen 80;
 +    server_name mgt1.cloud.ow1.in ext-mgt1.cloud.ow1.in;​
 +    charset ​    ​utf-8;​
 +
 +    access_log /​var/​log/​nginx/​dashboard-access.log main;
 +    error_log /​var/​log/​nginx/​dashboard-error.log;​
 +
 +    location /dashboard/ {
 +        include uwsgi_params;​
 +        uwsgi_param SCRIPT_NAME /dashboard;
 +        uwsgi_modifier1 30;
 +        uwsgi_pass 127.0.0.1:​8080;​
     }     }