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

Public Url for Paths #78

Merged
merged 4 commits into from
Oct 25, 2022
Merged

Conversation

HeapUnderfl0w
Copy link
Contributor

This PR augments microbin with the --public-path option.
This allows setting a public "root" path enabling the use behind a reverse proxy / in a subpath.

@szabodanika
Copy link
Owner

Hi @HeapUnderfl0w, cheers for this PR, it seems very useful. Would you mind documenting this feature in README.MD as well (with an example as well perhaps)?

@HeapUnderfl0w
Copy link
Contributor Author

Shure!. Will get to that later today.

@szabodanika szabodanika merged commit dc2c709 into szabodanika:master Oct 25, 2022
@HeapUnderfl0w HeapUnderfl0w deleted the public-path branch October 25, 2022 09:28
}
}

impl FromStr for PublicUrl {

Check failure

Code scanning / clippy

this file contains an unclosed delimiter

this file contains an unclosed delimiter
fn from_str(s: &str) -> Result<Self, Self::Err> {
let uri = s.strip_suffix('/').unwrap_or(s).to_owned();
Ok(PublicUrl(uri))
}

Check failure

Code scanning / clippy

this file contains an unclosed delimiter

this file contains an unclosed delimiter
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