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

Closed
opened 2025-11-02 10:24:08 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @RedCarl on GitHub (Apr 22, 2024).

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

Originally created by @RedCarl on GitHub (Apr 22, 2024). ### Description I used frp + nginx reverse proxy + ssl, and a 403 error occurred when I cloned and pushed. ![image](https://github.com/go-gitea/gitea/assets/71010647/5e7e84af-fd75-49d1-a38d-921b0023f540) 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
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:24:08 -06:00
Author
Owner

@lunny commented on GitHub (Apr 22, 2024):

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

@lunny commented on GitHub (Apr 22, 2024): So that's FRP system's problem? Maybe you need to investigate that system?
Author
Owner

@RedCarl commented on GitHub (Apr 22, 2024):

I just want to know if gitea does not support frp

@RedCarl commented on GitHub (Apr 22, 2024): I just want to know if gitea does not support frp
Author
Owner

@lunny commented on GitHub (Apr 22, 2024):

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

@lunny commented on GitHub (Apr 22, 2024): Sorry, according to your architecture, FRP will connect to nginx and nginx connect with Gitea. So FRP will not connect to Gitea.
Author
Owner

@RedCarl commented on GitHub (Apr 22, 2024):

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

@RedCarl commented on GitHub (Apr 22, 2024): ![image](https://github.com/go-gitea/gitea/assets/71010647/15d6a6a6-fd13-44e4-8cc1-4a77a16afbd8) Is it possible that it is a protocol problem? I chose tcp
Author
Owner

@wolfogre commented on GitHub (Apr 22, 2024):

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 on GitHub (Apr 22, 2024): > 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.
Author
Owner

@wolfogre commented on GitHub (Apr 22, 2024):

@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.

@wolfogre commented on GitHub (Apr 22, 2024): @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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12892