go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.05k stars 5.32k forks source link

frp + nginx reverse proxy + ssl = push 403 #30636

Closed RedCarl closed 2 months ago

RedCarl commented 2 months ago

Description

I used frp + nginx reverse proxy + ssl, and a 403 error occurred when I cloned and pushed. image I tried removing ssl, but it didn't work. If you remove frp and directly access 192.168.10.81:3000, there will be no problem.

Gitea Version

1.21.10

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

MySQL/MariaDB

lunny commented 2 months ago

So that's FRP system's problem? Maybe you need to investigate that system?

RedCarl commented 2 months ago

I just want to know if gitea does not support frp

lunny commented 2 months ago

Sorry, according to your architecture, FRP will connect to nginx and nginx connect with Gitea. So FRP will not connect to Gitea.

RedCarl commented 2 months ago

image Is it possible that it is a protocol problem? I chose tcp

wolfogre commented 2 months ago

I just want to know if gitea does not support frp

I guarantee Gitea can work well with frp because my Gitea instance works with frp and https for years.

@RedCarl Please note that it's almost impossible to help you without your network topology, reverse proxy configuration information. These have gone beyond the scope of Gitea discussions and are more like an operations issue.

wolfogre commented 2 months ago

@RedCarl I will close this issue. If you still can't solve it, I can personally offer some help. You can find me in the QQ group. I believe you speak Chinese.