Ho effettuato il deply della web application su aruba.
Il server linux ubuntu 22.04 viene usato come reserve proxy.
dopo aver fatto il deploy su backend/frontend, alla form di login, va in errore di tipo CORS, ma probabilmente non dovuto a problemi cors, ma a un problema di connessine mysql.
il log mi visualizza questa situazione:
2025/01/12 00:41:40 [error] 982272#982272: *14455 connect() failed (111: Unknown error) while connecting to upstream, client: 209.38.249.138, server: api.ghisellinimoreno.it, request: "GET /.env HTTP/1.1", upstream: "http://127.0.0.1:3000/.env", host: "195.231.76.57"
2025/01/12 00:47:40 [error] 982272#982272: *14461 connect() failed (111: Unknown error) while connecting to upstream, client: 84.31.85.79, server: api.ghisellinimoreno.it, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "195.231.76.57:443"
2025/01/12 00:53:09 [error] 982272#982272: *14465 connect() failed (111: Unknown error) while connecting to upstream, client: 18.189.29.17, server: api.ghisellinimoreno.it, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "195.231.76.57"
2025/01/12 01:31:13 [error] 982272#982272: *14469 connect() failed (111: Unknown error) while connecting to upstream, client: 185.242.226.70, server: api.ghisellinimoreno.it, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "195.231.76.57"
2025/01/12 02:53:36 [error] 982272#982272: *14476 connect() failed (111: Unknown error) while connecting to upstream, client: 185.242.226.70, server: api.ghisellinimoreno.it, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "195.231.76.57"
2025/01/12 03:35:50 [error] 982272#982272: *14491 connect() failed (111: Unknown error) while connecting to upstream, client: 185.242.226.70, server: api.ghisellinimoreno.it, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "195.231.76.57"
2025/01/12 04:06:44 [error] 982272#982272: *14495 connect() failed (111: Unknown error) while connecting to upstream, client: 74.82.47.4, server: api.ghisellinimoreno.it, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "195.231.76.57"
2025/01/12 04:10:52 [error] 982272#982272: *14499 connect() failed (111: Unknown error) while connecting to upstream, client: 74.82.47.4, server: api.ghisellinimoreno.it, request: "GET /webui/ HTTP/1.1", upstream: "http://127.0.0.1:3000/webui/", host: "195.231.76.57"
2025/01/12 04:12:31 [crit] 982272#982272: *14511 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 74.82.47.4, server: 0.0.0.0:443
2025/01/12 04:13:46 [error] 982272#982272: *14512 connect() failed (111: Unknown error) while connecting to upstream, client: 74.82.47.4, server: api.ghisellinimoreno.it, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:3000/favicon.ico", host: "195.231.76.57"
2025/01/12 04:15:22 [error] 982272#982272: *14514 connect() failed (111: Unknown error) while connecting to upstream, client: 74.82.47.4, server: api.ghisellinimoreno.it, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "195.231.76.57"
2025/01/12 04:19:18 [error] 982272#982272: *14516 connect() failed (111: Unknown error) while connecting to upstream, client: 74.82.47.4, server: api.ghisellinimoreno.it, request: "GET /geoserver/web/ HTTP/1.1", upstream: "http://127.0.0.1:3000/geoserver/web/", host: "195.231.76.57"
2025/01/12 04:20:47 [error] 982272#982272: *14520 connect() failed (111: Unknown error) while connecting to upstream, client: 8.222.192.1, server: api.ghisellinimoreno.it, request: "POST /hello.world?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1", upstream: "http://127.0.0.1:3000/hello.world?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input", host: "195.231.76.57:443"
.... segue
Come posso capire il problema ?
sono necessari i file index.js e db.js per vedere i parametri di connessione ?
a phpmyadmin accedo tranquillamente
grazie
Moreno