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

add http proxy settings #254

Merged
merged 3 commits into from
Jul 30, 2020
Merged

add http proxy settings #254

merged 3 commits into from
Jul 30, 2020

Conversation

Uunnamed
Copy link
Contributor

#fixies #148

README.md Outdated
:pac-url "localhost:8888" ;; explore this for using proxy in safari
:ftp "some.proxy.com:8080"
:ssl "some.proxy.com:8080"
:socks {:host "myproxy:8080" :version 5}
Copy link
Collaborator

Choose a reason for hiding this comment

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

тут лучше порт 1080, это стандарт для сокс

README.md Show resolved Hide resolved
README.md Outdated

``` clojure
{:proxy {:http "some.proxy.com:8080"
:pac-url "localhost:8888" ;; explore this for using proxy in safari
Copy link
Collaborator

Choose a reason for hiding this comment

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

pac-url лучше сдвинуть в конец мапы и добавить коммент:

A url for a proxy autoconfiguration file. Used with Safari as the other proxy options do not work in that browser.

И ссылку на вики:

https://en.wikipedia.org/wiki/Proxy_auto-config#The_PAC_File

README.md Show resolved Hide resolved
@@ -2884,6 +2896,12 @@
[with height] size
log-level (or log-level :all)
path-driver (or path-driver (get-in defaults [type :path]))
proxy (or proxy
Copy link
Collaborator

Choose a reason for hiding this comment

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

подход верный, только лучше в отдельной функции типа proxy-env. Она принимает proxy и дополняет переменными среды через cond->

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Она принимает proxy, не получится что она затрет параметры которые мануально передали?

@Uunnamed Uunnamed merged commit 6da9440 into master Jul 30, 2020
@Uunnamed Uunnamed deleted the add-proxy branch July 30, 2020 07:44
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