Comments (4)
I’m confused about why Kellnr needs to be aware of the “External” hostname, port, and protocol. I think it’s usually the responsibility of something like a proxy in front of Kellnr.
from kellnr.
Yeah that seems strange at first, but it is required due to the way that the protocol works.
Example:
You run Kellnr on a Server with the IP 1.2.3.4 on port 80. Now, you put a reverse proxy in front of it to serve it with from "kellnr.mycompany.com" on port 443 with TLS.
Next, you configure Cargo to use "kellnr.mycompany.com:443" as a registry. What Cargo does now is a bit strange: It request a specific route on Kellnr (or any other registry) to get a "config.json".
The json looks like this:
{
dl: String,
api: String,
auth_required: bool,
}
dl
and api
are the host, where Cargo will try to pull crates from, in our case this needs to be "kellnr.mycompany.com:443" (the proxy address) and not the host that Kellnr runs on. That's why Kellnr needs to know, where it is reachable from the "outside" to be able to fill the "config.json" correctly.
I hope this explains, why Kellnr needs to know the "external" host.
from kellnr.
Thank you, @secana.
I believe I understand now.
So, the index address written in .cargo/config.toml
and the address of the server that eventually serves the crates could be different.
Kellnr manages both sides and aims to hide the complexity of these.
For me, instead of "External", using "Server" might be more understandable in this situation.
from kellnr.
Complete refactoring of settings finished
from kellnr.
Related Issues (20)
- Could a view be added that displays packages via proxy? HOT 1
- statusCode=404 in Cargo.toml in Visual Studio Code HOT 2
- Permission to push and pull HOT 2
- I can not figure out how to set it up correctly HOT 4
- Switch to static.crates.io
- Updating helm values and upgrading, does not change default.toml HOT 1
- Spurious network error HOT 1
- [feature request] list dependees in addition to dependencies
- UI bug in search view HOT 3
- Doc build in kellnr docker container fails with: Invalid cross-device link HOT 3
- Kellnr's docker image doubled in size in last release HOT 4
- Public crates registry HOT 3
- Feature Improvement Request: Simplifying Documentation URL Format and Adding Latest Version Link HOT 4
- Cannot upload doc HOT 7
- ldap support HOT 1
- Disabaling the crates.io proxy will not disable the sparse index HOT 1
- private registry hosting cratesio setup HOT 2
- Kellnr calculates wrong checksum [CRITICAL] HOT 15
- Doc build in kellnr docker container fails with: Invalid cross-device link HOT 5
- Can't autogenerate docs when using docker image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kellnr.