-
Notifications
You must be signed in to change notification settings - Fork 40
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
Is there any way to create proxies outside of the GUI? #159
Comments
Few options:
|
Thank you for responding. Can I edit the JSON directly somewhere? Can I import via CLI or via script? |
You can use any text editor
There is no direct CLI support to extensions. You can use Enterprise Policy (or managed storage) and those can be edited via CLI or script. |
LIFE SAVER |
I am attempting to apply the policy but am not getting the desired proxy in the menu what am I doing wrong?
|
There is no such mode. An example of the mode would be:
Please note that if you use an Enterprise Policy, you wont be able to change anything from the FoxyProxy UI anymore. Everything will be set from the Enterprise Policy. |
this didn't work for me
|
There can be many reasons e.g. error in the the JSON, location, etc The included Help should have all the necessary information to set it up. |
This is one of the last policies I need to set up and worry about for my OS build. how do I enable 'mode:'? this is only a snippet of my policies.json, and it does appear in about:policies. can you please provide the JSON object for me to try? I can't understand the docs. Even in the example it shows 'pattern' in the 'mode:' key:
|
By setting the correct value which can be "pattern", proxy/port, or URL. |
Ok, What would be the easiest way to get the proxy listed in foxyproxys? Thank you |
The FoxyProxy enterprise policy resembles the FoxyProxy preferences export. "mode" is the same. Here is an example: {
"policies": {
"3rdparty": {
"Extensions": {
"[email protected]": {
"mode": "127.0.0.1:8080",
"data": [
{
"active": true,
"title": "Caido",
"type": "http",
"hostname": "127.0.0.1",
"port": "8080",
"username": "",
"password": "",
"cc": "",
"city": "",
"color": "#ff4500",
"pac": "",
"pacString": "",
"proxyDNS": true,
"include": [],
"exclude": []
}
]
}
}
}
}
} |
Thanks for this snippet! If I set |
If "mode" is set to an inactive proxy, the FoxyProxy will be set to disable. "active" is used when user has many proxies and wants to disabled some to keep the UI less overcrowded. |
What options should I use is I want to be able to disable proxy, and select the one I set by policy? |
If you are using CLI (or anything other than the UI), there is no need to change the "active" state of a proxy.
|
which option allows me start with a proxy in the settings, and the proxy disabled. I can select it when needed, but it is off by default? |
As I have already mentioned, "mode". |
We have to agree that the example provided and the incomplete sentence in the Mozilla docs that documents each Key:value pair is not intuitive to even a seasoned techie. You mentioned I hope my objective is clear, to have a proxy available to be chosen, but disabled by default. Can you please help me by providing an example snippet with this configuration? Thank you |
Yes... that is the purpose of Enterprise Policy. It controls the extension and it is fixed. Please read more on the function of the Enterprise Policy. Enterprise Polices are advanced features meant for administrators.
All |
Why would you be able to list more than one proxy if only one can be used and is always on by default? How can I achieve my goal of setting one proxy, not on by default - but able to be selected. Essentially I would like to script the adding of a proxy as if it were done in the GUI, is it possible? |
I just did a quick test, and my proxy is showing up in the 'proxy' tab under options, and the title of the proxy is hovering above the extension, but it's not listed in the proxy list and when I enable it, nothing happens. |
I only pointed out the possibilities. I am not aware of your settings.
Use the User Interface.
Only "active" proxies show in the toolbar popup UI. |
Are there any editable config files outside of the GUI to create a proxy?
Thank you!
The text was updated successfully, but these errors were encountered: