You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's no secret that Maven really doesn't like sitting behind a proxy. No matter if it's an internet proxy, a corporate network proxy, or (yes, you guessed it) Caddy proxy. It will just refuse to connect to the Maven central. Thankfully, it's possible to edit the Maven settings and configure it to work with a proxy. There's only one issue: I don't know how.
Now obviously, I tried Googleing it. And I found a few articles. But all of them appear to assume that you're just trying to reach a proxy server from Maven - not that the Maven itself sits behind a proxy. I found only one website that detailed the process of connecting to Maven Central from a corporate proxy network. Now that's kinda similar to what I have going on here. Except, instead of having the corporate proxy running somewhere on a remote server, I have it running locally. So I'm not sure, what do I put here: <host>{PROXY_HOST}</host> <port>{PROXY_PORT}</port> <nonProxyHosts>{NON_PROXY_HOSTS}</nonProxyHosts>. What would be the port? Code-server's port? Just a regular :80? Any other port that I have to redirect to :80 via Caddy? What would be the proxy host? Localhost? My server's public IP? Or it's internal network private IP? And what even is <nonProxyHosts />, anyway? Can anyone explain?
Now I'm aware that this question has basically nothing to do with the code-server project. I should probably ask it on Caddy's GitHub page. Or on StackOverflow with a Maven tag. But the thing is that, while the question itself is a bit unrelated, here I have the highest chance of finding someone with a similar issue. After all, it's not common for everyday Maven users to have their development environment sitting behind a Caddy proxy. And it's also uncommon for a usual Caddy server admin to have Maven served as one of the services.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It's no secret that Maven really doesn't like sitting behind a proxy. No matter if it's an internet proxy, a corporate network proxy, or (yes, you guessed it) Caddy proxy. It will just refuse to connect to the Maven central. Thankfully, it's possible to edit the Maven settings and configure it to work with a proxy. There's only one issue: I don't know how.
Now obviously, I tried Googleing it. And I found a few articles. But all of them appear to assume that you're just trying to reach a proxy server from Maven - not that the Maven itself sits behind a proxy. I found only one website that detailed the process of connecting to Maven Central from a corporate proxy network. Now that's kinda similar to what I have going on here. Except, instead of having the corporate proxy running somewhere on a remote server, I have it running locally. So I'm not sure, what do I put here:
<host>{PROXY_HOST}</host> <port>{PROXY_PORT}</port> <nonProxyHosts>{NON_PROXY_HOSTS}</nonProxyHosts>
. What would be the port? Code-server's port? Just a regular:80
? Any other port that I have to redirect to:80
via Caddy? What would be the proxy host? Localhost? My server's public IP? Or it's internal network private IP? And what even is<nonProxyHosts />
, anyway? Can anyone explain?Now I'm aware that this question has basically nothing to do with the code-server project. I should probably ask it on Caddy's GitHub page. Or on StackOverflow with a Maven tag. But the thing is that, while the question itself is a bit unrelated, here I have the highest chance of finding someone with a similar issue. After all, it's not common for everyday Maven users to have their development environment sitting behind a Caddy proxy. And it's also uncommon for a usual Caddy server admin to have Maven served as one of the services.
Beta Was this translation helpful? Give feedback.
All reactions