fastify ile google cloud gibi VM’lere http uzerinden baglanmada sorun yasiyorsak
Google Cloud Uzerinden Izin Vermek
Google Cloud Firewall uzerinden
Firewall RulesolusturTCPhem8080, hem de22izni olmalidir8080sizin sectiginiz port olarak alindiconst ws = Websocket({port: 8080))
Target tagskismindaki degeriinstanceicinnetworks tagskismina yaz
💡 Sunucu yeniden baslatmaya gerek yoktur


Fastify uzerinden tum ip erisimlerini acmaliyiz
try {
await this.fastify.listen({ port: 3000, host: "0.0.0.0" })
} catch (error) {
this.fastify.log.error(error)
process.exit(1)
}Last updated
Was this helpful?