Global variables


Recommended Posts

Hello,

I've been on unRAID for just a few months and enjoying it. I seem to enjoy tweaking and optimizing the server more than sitting down and just enjoying the content that I'm serving from it 😆 With that said, I decided that adding a VPN for my *arr and torrent/usenet services would be a good idea. I had to reconfigure my "Network type" on these containers to get things talking together again and had the pleasure of manually changing out all host names from something like http://binhex-sonarr:8989 to my actual server ip address http://192.168.1.xx:8989. These were often hidden away in some obscure place that I would often forget... and then spending the next hour troubleshooting what went wrong.

 

It would be great if there was a feature in unRAID that would allow for global variables. Something like:

  • Key 1: server_ip
  • Value 1: 192.168.1.xx

 

And then allow them to be injected anywhere, in the container template, in the application settings like so:

  • Host: {server_ip}

 

Link to comment

Are you talking about the WebUI entry on the template?

 

It was probably already set up with something akin to http://[IP]:[PORT80]/

 

Where when the WebUI resolves the URL it goes to the IP address of the server (if in host or bridge mode) or the IP of the container itself if not in host / bridge and the port 80 is mapped to in the container (bridge mode) or port 80 for all other networking modes.

Link to comment
1 hour ago, Squid said:

Are you talking about the WebUI entry on the template?

 

It wouldn't be limited to just the WebUI. It would be a feature that would be added to the WebUI under Settings or Tools. The variables can then be used anywhere including from within the GUIs on other containers. It's probably a long shot, but doesn't hurt to ask...

global-vars.png

SCR-20230413-nhyn.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.