    # static files
    location ^~ /browser {
        proxy_pass http://localhost:9980;
        proxy_set_header Host $host;
    }

    # WOPI discovery URL
    location ^~ /hosting/discovery {
        proxy_pass http://localhost:9980;
        proxy_set_header Host $host;
    }

    # Capabilities
    location ^~ /hosting/capabilities {
        proxy_pass http://localhost:9980;
        proxy_set_header Host $host;
    }

    # main websocket, download, presentation (legacy svg) and image upload
    location ^~ /cool/ {
        proxy_pass http://localhost:9980;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 36000s;
    }

    # backward compatibility for integrations that use the /lool/ POST API
    location ^~ /lool/ {
        proxy_pass http://localhost:9980;
        proxy_set_header Host $host;
    }

