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

Document proxy settings in Develop section #2070

Open
FabianLars opened this issue Apr 15, 2024 · 4 comments
Open

Document proxy settings in Develop section #2070

FabianLars opened this issue Apr 15, 2024 · 4 comments
Labels
enhancement Does it add or improve content?
Milestone

Comments

@FabianLars
Copy link
Member

FabianLars commented Apr 15, 2024

We have many users from china who typically always need a proxy for get around the great firewall. We should try to collect configs required for Tauri development to point them to.

Edit: I don't know anything about proxies so i don't know if this request actually makes sense. It's just a somewhat common issue.

@FabianLars FabianLars added the enhancement Does it add or improve content? label Apr 15, 2024
@simonhyll simonhyll added this to the Version 2.0 milestone May 3, 2024
@tweidinger tweidinger modified the milestones: Version 2.0, Version 2.x Aug 29, 2024
@tweidinger
Copy link
Contributor

Can you please link some related issues? I was not sure where the proxy would be needed. Either in the webview argument or during development to grab from github?

@FabianLars
Copy link
Member Author

I think tauri-apps/tauri#7338 is the main one.
tauri-apps/tauri#8012

If we want to expand this to runtime settings there's tauri-apps/plugins-workspace#824 and tauri-apps/tauri#9978 (not implemented).

But like i said in the issue, i have no idea about proxies and all the places people need it in tauri. Doesn't help much that large parts of the conversations are in chinese...

My hope for this issue is/was that affected people (ideally those who solved their issues) could chime in and tell us what we need to document.

@thep0y
Copy link

thep0y commented Sep 2, 2024

This is indeed very important for Chinese users, as GitHub is blocked in most parts of mainland China, especially the raw.githubusercontent.com domain. Tauri needs to download some files from GitHub during the packaging process, and most of these redirects point to raw.githubusercontent.com. Therefore, without using a proxy, these files cannot be downloaded.

Unfortunately, many Tauri developers are also unaware of how to configure a proxy.

However, as I commented on tauri-apps/tauri#7338 (comment), tauri-bundler supports configuring a proxy via environment variables. I have already commented on setting up proxy environment variables in the terminal at tauri-apps/tauri#7338 (comment). Adding an example command for setting proxy environment variables to the Tauri documentation should be sufficient and doesn't need to be overly detailed.

@thep0y
Copy link

thep0y commented Sep 2, 2024

Besides using proxies, this pull request tauri-apps/tauri#10866 offers a method to provide a smooth download experience for users in mainland China. I'm not sure if it can be merged.

It also includes practical, usable examples. Compared to using proxies, this method is simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Does it add or improve content?
Projects
Status: 💪 Ready
Development

No branches or pull requests

4 participants