map $http_host $directus {
    directus-mi.local.wpstudio.ru directus-mi;
}

server {
    listen 80;
    server_name
        directus-mi.local.wpstudio.ru
    ;
    location / {
        resolver 127.0.0.11;
        proxy_pass http://$directus:8055;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}
