Access module through VPN IP instead of Tunnel

I installed the JetBrains Gateway module like this:
module "jetbrains_gateway" {
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.9"
agent_id = coder_agent.main.id # Reference the coder_agent ID you've configured
agent_name = "main" # Name to reflect your coder_agent resource
folder = "/home/${local.username}" # Use the dynamic username from your locals
jetbrains_ides = ["CL", "GO", "IU", "PY", "WS"]
default = "GO"
}
module "jetbrains_gateway" {
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.9"
agent_id = coder_agent.main.id # Reference the coder_agent ID you've configured
agent_name = "main" # Name to reflect your coder_agent resource
folder = "/home/${local.username}" # Use the dynamic username from your locals
jetbrains_ides = ["CL", "GO", "IU", "PY", "WS"]
default = "GO"
}
After installation, I got a menu in the dashboard for the Gateway. However, I'm looking for a way to change the URL from the tunnel URL to the IP address of our VPN (we use ZeroTier), which looks like 192.168.x.x.
jetbrains-gateway://connect#type=coder&workspace=oss&agent=main&folder=/home&url=https://<ID>.pit-1.try.coder.app&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=233.14808.21&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2023.3.5.tar.gz
jetbrains-gateway://connect#type=coder&workspace=oss&agent=main&folder=/home&url=https://<ID>.pit-1.try.coder.app&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=233.14808.21&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2023.3.5.tar.gz
5 Replies
Codercord
Codercord10mo ago
<#1225089443040460901>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
kerxkerby
kerxkerbyOP10mo ago
(Also with the FileBrowser module)
Atif
Atif10mo ago
For that to work you need to set CODER_ACCESS_URL in your coder deployment to the correct IP
kerxkerby
kerxkerbyOP9mo ago
Hi @Atif yes, but I've been trying to make the CODER_ACCESS_URL work with local network address and not something public
Atif
Atif9mo ago
It should be possible Your Local DNS should be able to resolve it It should also be able to set to the IP address too

Did you find this page helpful?