Home>

I am creating an application in front React backend Rails API mode. Do I need Nginx on the backend side at that time?
Rails api returns json.
Also, I have started the backend with number 3000, but if it is unnecessary, should I send a request from the front to public IP: 3000 such as EC2?
I am thinking of using S3 and cloud front for the front desk.

  • Answer # 1

    I've never thought about not building nginx or apatch in a production environment, regardless of API or HTTP. It may be an option if you only have the same level of access as the development environment and you do not need to encrypt the communication path.
    "If you don't need it, send a request from the front desk to a public IP such as EC2: 3000"
    Is it a mistake if necessary? If so, it is YES