Hardcoded "localhost" error in 1.3.2 #1453

Closed
opened 2025-11-02 04:01:24 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @sailfish009 on GitHub (Jan 15, 2018).

  • Gitea version (or commit ref): 1.3.2
  • Git version: 2.15.1
  • Operating system: Ubuntu 14.x
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

After update to 1.3.2 from 1.3.0,
I couldn't load my local network gitea repository with mouse click.

NOTE: FOR EXAMPLE, my local network gitea server IP is 192.168.100.100, my computer IP is 192.168.100.99

Before (with v1.3.0)
http://192.168.100.100:3000/sailfish009/hello_world -- (mouse click) --> http://192.168.100.100:3000/sailfish009/hello_world

After (with v1.3.2)
http://192.168.100.100:3000/sailfish009/hello_world -- (mouse click) --> http://localhost:3000/sailfish009/hello_world

i couldn't load the repository because it is not localhost, it must be 192.168.100.100 instead of "localhost".

Screenshots

Originally created by @sailfish009 on GitHub (Jan 15, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.3.2 - Git version: 2.15.1 - Operating system: Ubuntu 14.x - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description After update to 1.3.2 from 1.3.0, I couldn't load my local network gitea repository with mouse click. NOTE: FOR EXAMPLE, my local network gitea server IP is 192.168.100.100, my computer IP is 192.168.100.99 Before (with v1.3.0) http://192.168.100.100:3000/sailfish009/hello_world -- (mouse click) --> http://192.168.100.100:3000/sailfish009/hello_world After (with v1.3.2) http://192.168.100.100:3000/sailfish009/hello_world -- (mouse click) --> http://localhost:3000/sailfish009/hello_world i couldn't load the repository because it is not localhost, it must be 192.168.100.100 instead of "localhost". ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 04:01:24 -06:00
Author
Owner

@lafriks commented on GitHub (Jan 15, 2018):

You should set that in app.ini root url to what you need

@lafriks commented on GitHub (Jan 15, 2018): You should set that in app.ini root url to what you need
Author
Owner

@sailfish009 commented on GitHub (Jan 16, 2018):

i didn't set app.ini in v1.3.0, why should i set app.ini in v1.3.2

@sailfish009 commented on GitHub (Jan 16, 2018): i didn't set app.ini in v1.3.0, why should i set app.ini in v1.3.2
Author
Owner

@sailfish009 commented on GitHub (Feb 22, 2018):

downloaded app.ini.sample, didn't touched anything. temp work around.

$ cd [directory where gitea found]
$ wget https://raw.githubusercontent.com/go-gitea/gitea/master/custom/conf/app.ini.sample
$ mv app.ini.sample app.ini

@sailfish009 commented on GitHub (Feb 22, 2018): downloaded app.ini.sample, didn't touched anything. temp work around. $ cd [directory where gitea found] $ wget https://raw.githubusercontent.com/go-gitea/gitea/master/custom/conf/app.ini.sample $ mv app.ini.sample app.ini
Author
Owner

@techknowlogick commented on GitHub (May 10, 2018):

app.ini is needed so that Gitea knows what configuration values to use.

As you were able to find a work around can this issue be closed?

@techknowlogick commented on GitHub (May 10, 2018): `app.ini` is needed so that Gitea knows what configuration values to use. As you were able to find a work around can this issue be closed?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1453