[forgejo] force IPv4 on proxy_pass to Forgejo instance #12

Merged
vlw merged 1 commit from fix/forgejo-ipv4 into master 2026-08-16 06:21:08 +02:00
Owner

This should fix the long-standing error where connections specifically to git.vlw.se time out intermittently (not localhost:8004). It appears that localhost will sometimes try to connect over IPv6 at ::1.

2026/08/16 06:13:02 [error] 1126#1126: *294814 connect() failed (111: Connection refused) while connecting to upstream, client: 103.249.198.237, server: git.vlw.se, request: "GET /vegvisir/vegvisir HTTP/1.1", upstream: "http://[::1]:8004/vegvisir/vegvisir", host: "git.vlw.se", referrer: "https://git.vlw.se"
This should fix the long-standing error where connections specifically to `git.vlw.se` time out intermittently (not `localhost:8004`). It appears that `localhost` will sometimes try to connect over IPv6 at `::1`. ``` 2026/08/16 06:13:02 [error] 1126#1126: *294814 connect() failed (111: Connection refused) while connecting to upstream, client: 103.249.198.237, server: git.vlw.se, request: "GET /vegvisir/vegvisir HTTP/1.1", upstream: "http://[::1]:8004/vegvisir/vegvisir", host: "git.vlw.se", referrer: "https://git.vlw.se" ```
vlw merged commit d366cfc47a into master 2026-08-16 06:21:08 +02:00
vlw deleted branch fix/forgejo-ipv4 2026-08-16 06:21:08 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
config/nginx!12
No description provided.