Forráskód Böngészése

deployed new website globally

Rodja Trappe 2 éve
szülő
commit
879be5f541
2 módosított fájl, 9 hozzáadás és 3 törlés
  1. 2 3
      fly.toml
  2. 7 0
      main.py

+ 2 - 3
fly.toml

@@ -5,7 +5,6 @@ processes = []
 
 [build]
   dockerfile = "fly.dockerfile"
-  #image = "zauberzeug/nicegui:0.9.25"
 
 [env]
 
@@ -39,14 +38,14 @@ strategy = "canary"
     port = 443
 
   [[services.tcp_checks]]
-    grace_period = "5s"
+    grace_period = "10s"
     interval = "5s"
     restart_limit = 1
     timeout = "1s"
 
   [[services.http_checks]]
     interval = "20s"
-    grace_period = "10s"
+    grace_period = "30s"
     method = "get"
     path = "/"
     protocol = "http"

+ 7 - 0
main.py

@@ -1,4 +1,11 @@
 #!/usr/bin/env python3
+
+if True:
+    # increasing max decode packets to be able to transfer images
+    # see https://github.com/miguelgrinberg/python-engineio/issues/142
+    from engineio.payload import Payload
+    Payload.max_decode_packets = 500
+
 from pathlib import Path
 
 from pygments.formatters import HtmlFormatter