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

feature parity with legacy ytproxy #18

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

aspacca
Copy link

@aspacca aspacca commented Mar 1, 2023

  • legacy ytproxy accepts a PREFIX_PATH env variable for special deployment case where the proxy is hosted behind a path rather on a separate domain
  • legacy ytproxy filters out more sensitive headers to be forwarded

@aspacca
Copy link
Author

aspacca commented Dec 3, 2023

@FireMasterK , I was rewriting the response in nginx with lua, to have the urls from proxy be prepended by the proxy path. but it was very slow and produced a lot of buffering, so having support for it directly in the proxy would be awesome.

please, let me know what do you think of this feature

thanks :)

Copy link
Member

@FireMasterK FireMasterK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want this to be a configurable non-default feature at build time.

src/utils.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
@aspacca
Copy link
Author

aspacca commented Mar 11, 2024

I want this to be a configurable non-default feature at build time.

will you plan to release a separated docker image with that build?

@FireMasterK
Copy link
Member

will you plan to release a separated docker image with that build?

There could be an image with all build features.

@aspacca
Copy link
Author

aspacca commented Mar 12, 2024

@FireMasterK fixed, pleae let me know if anything else is missing

src/utils.rs Outdated Show resolved Hide resolved
src/utils.rs Outdated Show resolved Hide resolved
@@ -46,12 +60,12 @@ fn finalize_url(path: &str, query: BTreeMap<String, String>) -> String {
if qhash.is_some() {
let mut query = QString::new(query.into_iter().collect::<Vec<_>>());
query.add_pair(("qhash", qhash.unwrap()));
return format!("{}?{}", path, query);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need feature specific code for when prefix-path enabled and not.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @FireMasterK , please let me know if my solution is what you meant. thanks

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

Successfully merging this pull request may close these issues.

2 participants