diff --git a/config/params-template.php b/config/params-template.php index 54e1443..22325e1 100644 --- a/config/params-template.php +++ b/config/params-template.php @@ -5,6 +5,7 @@ 'jupyter_services_url' => 'jupyter service url', 'jupyter_ingresses_url' => 'jupyter ingress url', 'jupyter_bearer_token' => 'jupyter auth token', + 'jupyter_ingress_proxy_body_size' => 'max size of request', 'tmpFolderPath' => 'json folder for jupyter', 'userDataPath' => '', 'systemUser' => '', diff --git a/models/JupyterServer.php b/models/JupyterServer.php index e9427fa..56e31db 100644 --- a/models/JupyterServer.php +++ b/models/JupyterServer.php @@ -339,7 +339,7 @@ public function startServer() 'name' => $sid, 'annotations' => array( 'kubernetes.io/ingress.class' => 'nginx', - + 'nginx.ingress.kubernetes.io/proxy-body-size' => Yii::$app->params['jupyter_ingress_proxy_body_size'] ?? "100m" ) ), 'spec' => array (