I suggest the ssh button to generate ssh address when using js to get the current page host way. #153

Closed
opened 2025-11-02 03:11:02 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @insionCEO on GitHub (Dec 24, 2016).

This allows the correct host to be obtained by default without properly configuring the [server] ROOT_URL address.

Originally created by @insionCEO on GitHub (Dec 24, 2016). This allows the correct host to be obtained by default without properly configuring the [server] ROOT_URL address.
GiteaMirror added the type/enhancement label 2025-11-02 03:11:02 -06:00
Author
Owner

@lunny commented on GitHub (Dec 24, 2016):

Thanks. Could you send a PR to gitea?

@lunny commented on GitHub (Dec 24, 2016): Thanks. Could you send a PR to gitea?
Author
Owner

@tboerger commented on GitHub (Dec 24, 2016):

The ssh is not equal to the Web host, so this doesn't work. The value just needs to be exposed to the installer

@tboerger commented on GitHub (Dec 24, 2016): The ssh is not equal to the Web host, so this doesn't work. The value just needs to be exposed to the installer
Author
Owner

@lunny commented on GitHub (Dec 24, 2016):

He means after you install a new instance of gitea, ssh clone address' host is empty.

@lunny commented on GitHub (Dec 24, 2016): He means after you install a new instance of gitea, ssh clone address' host is empty.
Author
Owner

@tboerger commented on GitHub (Dec 24, 2016):

It's not empty, it just defaults to the wrong hostname.

@tboerger commented on GitHub (Dec 24, 2016): It's not empty, it just defaults to the wrong hostname.
Author
Owner

@tboerger commented on GitHub (Dec 24, 2016):

The setting https://github.com/go-gitea/gitea/blob/master/conf/app.ini#L102 is responsible for the host displayed there.

@tboerger commented on GitHub (Dec 24, 2016): The setting https://github.com/go-gitea/gitea/blob/master/conf/app.ini#L102 is responsible for the host displayed there.
Author
Owner

@lunny commented on GitHub (Dec 25, 2016):

So we need send a bug fix?

@lunny commented on GitHub (Dec 25, 2016): So we need send a bug fix?
Author
Owner

@tboerger commented on GitHub (Dec 26, 2016):

That's not a bug, it's simply not exposed on the installation wizard

@tboerger commented on GitHub (Dec 26, 2016): That's not a bug, it's simply not exposed on the installation wizard
Author
Owner

@typeless commented on GitHub (Dec 27, 2016):

The setting https://github.com/go-gitea/gitea/blob/master/conf/app.ini#L102 is responsible for the host displayed there.

@tboerger
Why is there an 's' after %(DOMAIN)?

I thought that is a supported interpolation syntax 😆

@typeless commented on GitHub (Dec 27, 2016): > The setting https://github.com/go-gitea/gitea/blob/master/conf/app.ini#L102 is responsible for the host displayed there. @tboerger ~~Why is there an 's' after %(DOMAIN)?~~ I thought that is a supported interpolation syntax 😆
Author
Owner

@tboerger commented on GitHub (Jan 16, 2017):

I thought that is a supported interpolation syntax 😆

That's how the ini lib implemented the interpolation ;)

@tboerger commented on GitHub (Jan 16, 2017): > I thought that is a supported interpolation syntax 😆 That's how the ini lib implemented the interpolation ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#153