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

Config Question: Why is the Proxy Config like it is? #209

Open
Merith-TK opened this issue Mar 27, 2024 · 0 comments
Open

Config Question: Why is the Proxy Config like it is? #209

Merith-TK opened this issue Mar 27, 2024 · 0 comments

Comments

@Merith-TK
Copy link

Merith-TK commented Mar 27, 2024

https://github.com/haveachin/infrared/blob/main/pkg/infrared/server.go#L46

why choose this particular mapping? I cant seem to find any uh... good info on how to do entries in this proxy config otherwise I would consider trying it out over mc-router (which I currently am using)

if that is what looked like it would work for you at the time,
I say you can use the chunk of code in my config handler here for the environment,
https://github.com/Merith-TK/busybox64.portable/blob/main/config.go#L42

Basically in my code for that project i store environment variables as a map[string]string which allows me to define arbitrary keynames,
which if altered to be used here, could be used to allow for (example assumes docker network configs for readability)

proxies:
  example.com: "lobby:25565"
  creative.example.com: "creative:25565"
  survival.example.com: "survival:25565"
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

1 participant