flame icon indicating copy to clipboard operation
flame copied to clipboard

Feature Request: option to replace a part of a application adress with the current URL.

Open simphide opened this issue 4 years ago • 4 comments

It would be great to be able to just set a port or a path as the url and the rest of the url would be taken from the current url.

So that if I open a Flame instance from "www.flame.com" a link would lead to "www.flame.com:8080" and if I open the same Flame instance via the IP Adress, the URL would lead to the <IP adress>:8080. With this option it would be easier to access the urls also via VPN access.

simphide avatar Nov 22 '21 21:11 simphide

Can you elaborate more on that? I don't quite understand what this feature is about and based on the current description I don't think it's possible to implement.

pawelmalak avatar Nov 22 '21 22:11 pawelmalak

Sorry if I described this too vaguely. The suggestion is that a user should be able to specify only part of the URL. To do this, a user could specify some sort of variable like <URL>, which would be replaced at runtime by Flame with the URL that is currently being used to access Flame. In Javascript, for example, this can be solved by window.location.href.

simphide avatar Nov 22 '21 22:11 simphide

+1

This is useful when accessing flame with a local ip and a remote ip (e.g. trough a VPN, Tailscale etc.) and applications are running on the same server as flame.

hng avatar Dec 23 '21 18:12 hng

+1 Thx for this cool project. I would like to run Flame behind a http proxy. I would be necessary to replace a part of a application adress of Flame with a configured prefix. This is a common use case when running multiple web-apps on the same server.

Would be a minor fix, wouldn't it?

schuettec avatar Feb 14 '23 08:02 schuettec