Hébergement Cloud Web - [Cloud Web 1][Python] Taille maximum de fichier static
... / [Cloud Web 1][Python] Tai...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

[Cloud Web 1][Python] Taille maximum de fichier static

Von
SebastienP39
Erstellungsdatum 2020-01-19 11:56:42 (edited on 2024-09-04 11:43:43) in Hébergement Cloud Web

Bonjour à tous,

Mon application python sert du html avec du javascript dans un fichier bundle.js d'environ 1Mo.
Cependant, dès que la taille dépasse 65536o (64Ko), le fichier est tronqué.
Je pense qu'il s'agit du MAX_CONTENT de WSGI (https://pyslet.readthedocs.io/en/latest/wsgi.html), ou de quelque chose de semblable.

Sauriez-vous comment l'on peut configurer ce genre de limites ? Doit-on utiliser le fichier .ovhconfig ?
J'ai du mal à trouver des réponses sur internet ou sur la doc OVH ...

Merci d'avance.


1 Antwort ( Latest reply on 2020-01-19 12:06:42 Von
SebastienP39
)

.ovhconfig: non rien de documenté, https://docs.ovh.com/fr/hosting/configurer-fichier-ovhconfig/

pour le reste, je sais pas

Effectivement je n'ai rien trouvé dans la doc du .ovhconfig
Merci quand même

Sinon, peut-être un fichier settings.json :
https://github.com/swl10/pyslet/blob/master/doc/wsgi.rst#data-storage
Mais je n'ai aucune idée de comment fonctionne l'environnement WSGI d'OVH qui appelle l'application renseignée dans le moteur d'exécution, et comment configurer quoi que ce soit.