Update setup_server.py
This commit is contained in:
parent
fb2984b7f7
commit
7443d431e5
|
|
@ -526,7 +526,12 @@ server {{
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
proxy_read_timeout 120s;
|
# Timeout estesi per /api/soc-report/generate
|
||||||
|
# (collect + 8 AI narrative parallele + PDF ~2:30)
|
||||||
|
proxy_connect_timeout 60s;
|
||||||
|
proxy_send_timeout 300s;
|
||||||
|
proxy_read_timeout 300s;
|
||||||
|
client_body_timeout 300s;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
location / {{
|
location / {{
|
||||||
|
|
@ -731,4 +736,4 @@ if __name__ == "__main__":
|
||||||
print(f" Tecnotel Servizi SRL")
|
print(f" Tecnotel Servizi SRL")
|
||||||
print(f" Apri: http://<IP_SERVER>:{PORT}")
|
print(f" Apri: http://<IP_SERVER>:{PORT}")
|
||||||
print(f"{'='*55}\n")
|
print(f"{'='*55}\n")
|
||||||
HTTPServer(("0.0.0.0", PORT), SetupHandler).serve_forever()
|
HTTPServer(("0.0.0.0", PORT), SetupHandler).serve_forever()
|
||||||
Loading…
Reference in New Issue