I tried with just http+unix configuration and I’m able to set the proxy reverse in nginx to get it working.
However, any time I try fcgi+unix, I always get a connection reset (petition is not forwarded to gitea as I see in the logs), I cannot get the proper configuration in nginx neither I can find any example on the Internet.
Do any of you have a working nginx configuration for fcgi+unix so I can take it as an example?
I think you have to change proxy_pass http://unix:/run/gitea/gitea.sock;
And turn it into proxy_pass unix:/run/gitea/gitea.sock;
Let me know if that works.
Not working, nginx throws an error about an invalid URL prefix. Proxy_pass needs that http:// while fastcgi_pass is the one starting with unix. And I tried with fastcgi_pass without success.