-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
- Gitea version: gitea-1.6.2-windows-4.0-amd64
- Git version: Git-2.20.1-64-bit
- Operating system: Windows 10 1803
- Database:
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Not relevant
Whenever I try to push new files that are tracked by LFS with a computer inside the local network the push operation fails, because it's trying to connect to the ROOT_URL defined in app.ini.
I can change the ROOT_URL to point to the local address, but then computers from outside obviously can't connect. I do not have a domain name registered, so I'm using explicit IPs. Is there a way to solve this?
"D:\Programs\Git\bin\git.exe" push --recurse-submodules=check --progress "origin" refs/heads/master:refs/heads/master Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done LFS: Put https://xxx.xxx.xxx.xxx:3000/XX/Test.git/info/lfs/objects/aed286ac1fa67fe7050ff63cac3056decd38d37743525fd06de777c80265a189: dial tcp xxx.xxx.xxx.xxx:3000: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. error: failed to push some refs to 'https://192.168.192.49:3000/XX/Test.git' Done
app.ini
[server]
ROOT_URL = https://xxx.xxx.xxx.xxx:3000/
I've tried changing the lfs url with the following command on the pc in the local network:
git config --add lfs.url https://192.168.192.49:3000/XX/Test.git/info/lfs
git config --add lfs.pushurl https://192.168.192.49:3000/XX/Test.git/info/lfs
But this had no effect