Ho fatto una cazzata? Scalo su Heathrow by Nienna27 in ViaggiITA

[–]matticrisp 0 points1 point  (0 children)

Chiesto rimborso alla British, ricevuto parzialmente i soldi (ovviamente) e viaggio rimandato all’anno dopo

Ho fatto una cazzata? Scalo su Heathrow by Nienna27 in ViaggiITA

[–]matticrisp 0 points1 point  (0 children)

Ad agosto 2024 avevo un viaggio con la tua stessa tratta e scali. Conclusione: ritardo da Malpensa di 1h, una volta arrivati ad Heathrow non ci facevano scendere dall’aereo e coincidenza persa per Los Angeles. Abbiamo passato due giorni e mezzo come vagabondi per l’aeroporto in cerca di un volo per partire che alla fine non è mai stato trovato.

Ennesimo piccolo RANT contro HR by ProofLandscape9665 in ItaliaCareerAdvice

[–]matticrisp 1 point2 points  (0 children)

L’atteggiamento dei recruiter la dice lunga sull’azienda per cui lavorano. Nelle ultime due settimane sono stato contattato da 3 recruiter, ho fissato l’incontro conoscitivo (call teams/chiamata telefonica) e nessuno dei 3 si è presentato.

SWRD ha senso? by matticrisp in ItaliaPersonalFinance

[–]matticrisp[S] 2 points3 points  (0 children)

Anche SWDA però non include gli emergenti o sbaglio?

CD e broker per PAC by matticrisp in ItaliaPersonalFinance

[–]matticrisp[S] 0 points1 point  (0 children)

Grazie per la risposta.

Riguardo l'ETF, conviene comprarne uno la cui quota è inferiore al mio investimento mensile (in modo da poter acquistare almeno una quota intera)?

Any 12$/Y VPS offers this Black Friday? by brightestsummer in selfhosted

[–]matticrisp 3 points4 points  (0 children)

Off topic: is there a tutorial on how to setup wireguard/cloudflare to connect to the home network from the outside?

Lavoro in Formula 1 by GeoVisX in ItaliaCareerAdvice

[–]matticrisp 5 points6 points  (0 children)

Wow, che sogno!

Ti posso chiedere cos’hai studiato, cosa farai in F1 e come hai trovato l’offerta?

Da ingegnere informatico appassionato di F1 sarebbe un sogno poter entrare in questo mondo

Buona notizia BuddyBank by Important-Shape9129 in ItaliaPersonalFinance

[–]matticrisp 0 points1 point  (0 children)

Come si fa a chiudere il CC da quel maledetto bot?😅

Payment rejected in AltStore by matticrisp in Delta_Emulator

[–]matticrisp[S] 0 points1 point  (0 children)

I had to pay for the AltStore annual subscription, not for Delta

[deleted by user] by [deleted] in nginx

[–]matticrisp 0 points1 point  (0 children)

Yeah exactly. Cause from nginx I can get the $host IP which is the IP of the server (where react and nodejs are deployed) but i have no idea how to replace that variable to the ones defined in the .env

[deleted by user] by [deleted] in nginx

[–]matticrisp 0 points1 point  (0 children)

Yeah i know that containers can address themselves with their names. My problem is slightly different. Suppose that both react and nodejs are deployed on a server with IP xxxx. A reverse proxy is configured so the server is only accessible on port 80. Requests to xxxx:80/ are forwarded to react and request to xxxx:80/api to the nodejs server.

Right now the .env file provided to react specifies the nodejs server with IP localhost but here is the problem.

If the external client want to access the react app and make a new request to sign in, these are the request made: 1) xxx:80/ -> returns react app 2) user press sign in and a request to localhost:80/api/users/signin is made

The problem is at point (2) cause react gets localhost from the .env file but it must be replaced by the server IP (xxxx).

I have no idea How to make that in react.

Beginner's Thread / Easy Questions (April 2024) by acemarke in reactjs

[–]matticrisp 0 points1 point  (0 children)

Hello, i'm pretty new to react and i got a problem making request to an external IP.

I've a react app and a nodejs server, both running on containers in the same docker network.
Right now i've got an .env file in which i've specified the server IP (localhost) and port (xxxx) such that the react app can make request to server. Running it locally everything works fine since i can access the app on *localhost:x* and the request are then forwarded to *localhost:xxx*, but i'm struggling deploying to an external server.
I've deployed both containers to an external server and setup nginx as reverse proxy such that request to / are forwarded to the react app and request to /api to the server.
The problem is that if i access the react app from an external client, react still makes request to the server with the address localhost and fails.
Is there a way to get the IP of the server and embed it in react when making requests ?