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

Allow specifying alternate bin and cache directories when downloading #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdlavin
Copy link

@mdlavin mdlavin commented May 18, 2023

I've been using ngrok inside a Lambda function and in that environment, writing to the node_modules directory is not allowed. Instead, I've been using this patch so that I can store download cache and binaries in the temp directory of the OS.

Rather than making the temp directory use explicit, I thought making it configurable would be better

cdnUrl: string;
cdnPath: string;
ignoreCache: boolean;
cafilePath?: string;
Copy link
Author

Choose a reason for hiding this comment

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

The only new addition are the last two lines. The other lines are made optional to reflect reality.

@@ -203,7 +203,7 @@ declare module "ngrok" {

interface CapturedRequestOptions {
limit: number;
tunnel_name: string;
tunnel_name?: string;
Copy link
Author

Choose a reason for hiding this comment

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

Noticed during development, the tunnnel_name isn't really required

@mdlavin
Copy link
Author

mdlavin commented May 18, 2023

P.S. Thank you for working on this project. We've been using it for a while and it works great!

@mdlavin
Copy link
Author

mdlavin commented Nov 9, 2023

@philnash would you mind considering this PR?

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.

None yet

1 participant