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

Using a custom address #6

Open
lcombaldieu opened this issue Feb 14, 2024 · 6 comments
Open

Using a custom address #6

lcombaldieu opened this issue Feb 14, 2024 · 6 comments

Comments

@lcombaldieu
Copy link

Hi,

I would like my frp to generate custom links for my demos. For example, launching an interface would produce links such as :
demo1.my-website.com
demo2.my-website.com
Instead of
qsdcjbqosqsdcq.my-website.com

Is this possible ? Where could I tinker in the code ?

@cpwan
Copy link

cpwan commented Feb 20, 2024

here is where the random prefix is generated. still trying to figure out how to change that...

if m.ProxyName != "random" {

@lcombaldieu
Copy link
Author

I have opened a pull request with a solution using env variable to set the custom name.

See the code here

@ckasimis
Copy link

great work!

how about generating a custom proxyname that can relate to the script that is launched?
for example:

chat.my-website.com
sdxl.my-website.com
mistral.my-website.com
llama.my-website.com

how could we pass that variable

@lcombaldieu
Copy link
Author

Nice idea !
However I think for this kind of feature to work, a bit more engineering is required on Gradio's side. You would need to add changes to gradio's python lib and the frp repo.
Maybe @abidlabs can help for this.

@Frank-Jie
Copy link

I have opened a pull request with a solution using env variable to set the custom name.

See the code here

thanks for your work, it save me a lot of time . but it seems only change the rule of proxyName on the server side.

frpc need to be correspond with same rule here:
https://github.com/huggingface/frp/blob/dev/client/proxy/proxy_manager.go#L137

@lcombaldieu
Copy link
Author

I'm still having trouble making it work. If anyone with more expertise with go and frp can review the pull request, that would be helpful.

@Frank-Jie did you manage to do it ? I would be interested in your solution

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

No branches or pull requests

4 participants