Problem with NGINX - Strapi + Hugo

Hi there, I’m aiming to create a scalable micro-service architecture with Strapi + Hugo. As of right now, I only have one Hugo project under Strapi management, but in the future there might be multiple ones. I’ve created a lifecycle hook in my Strapi so everytime someone creates a new page in the Hugo site, Strapi writes a new markdown file in my Hugo project. But I’m having some problems with my nginx configuration. It seems like Strapi doesn’t work if it is not the root of my config, as everytime I try and change “location /” to something like “location /strapi” it loses the path to every route. So I’ve worked around this issue by creating a “location /hugo” and leaving Strapi on root and solving this on DNS config, but this is like a quick fix in my understanding.

Is there a way to do this better? Maybe if run Strapi in another VM or as another directive altogheter? Will it scale? Thanks for your attention in advance

OBS: nginx configurations are attached in the post

This topic has been created from a Discord post (1295749996993449994) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord