Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fr] Custom variables #391

Open
Cothlory opened this issue Aug 15, 2024 · 1 comment
Open

[fr] Custom variables #391

Cothlory opened this issue Aug 15, 2024 · 1 comment

Comments

@Cothlory
Copy link

I have created more than 10 redirector rules that involves the same domain name of a self-hosted service. If the service is down, I will have to switch to another domain, which requires me to modify each redirector rule one by one. If there is a feature that enables me to define variables and refer to them in the redirector rules, I can simply define a variable whose content is the domain name. Then I can use that variable in my redirector rules, and changing the domain name would be as simple as changing the definition of the variable instead of changing the redirector rules.

We can add a section where variables can be defined by the user. In the redirector rules, one can use the variables by writing in something like $variableName.

@Gitoffthelawn
Copy link
Collaborator

That's a fascinating idea.

As a less-than-ideal workaround, you can:

  1. export your rules
  2. use a text editor's find and replace function to make the change
  3. import your rules

That's obviously not as neat and clean as your recommendation, but hopefully it can help you right now. 👍🏾

The bonus is that it forces you to make a backup of your rules, which is always a good idea.

@Gitoffthelawn Gitoffthelawn changed the title [Feature request] Custom variables [fr] Custom variables Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants