You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Move flags to where they belong
* Move `get_default_plugins` within FlagParser as it depends upon args
TODO: We need plugin dependency system
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
--threadless Default: False. When disabled a new thread is spawned to handle each
1898
+
client connection.
1899
+
--pid-file PID_FILE Default: None. Save parent process ID to a file.
1884
1900
--backlog BACKLOG Default: 100. Maximum number of pending connections to proxy server
1885
-
--enable-events Default: False. Enables core to dispatch lifecycle events. Plugins can be used to subscribe for core events.
1886
1901
--hostname HOSTNAME Default: ::1. Server IP address.
1887
1902
--port PORT Default: 8899. Server port.
1888
1903
--num-workers NUM_WORKERS
1889
1904
Defaults to number of CPU cores.
1905
+
--unix-socket-path UNIX_SOCKET_PATH
1906
+
Default: None. Unix socket path to use. When provided --host and
1907
+
--port flags are ignored
1890
1908
--client-recvbuf-size CLIENT_RECVBUF_SIZE
1891
-
Default: 1 MB. Maximum amount of data received from the client in a single recv() operation. Bump this value for faster uploads at the expense of increased RAM.
1892
-
--key-file KEY_FILE Default: None. Server key file to enable end-to-end TLS encryption with clients. If used, must also pass --cert-file.
1893
-
--timeout TIMEOUT Default: 10. Number of seconds after which an inactive connection must be dropped. Inactivity is defined by no data sent or received by the client.
1894
-
--pid-file PID_FILE Default: None. Save parent process ID to a file.
1909
+
Default: 1 MB. Maximum amount of data received from the client in a
1910
+
single recv() operation. Bump this value for faster uploads at the
1911
+
expense of increased RAM.
1912
+
--key-file KEY_FILE Default: None. Server key file to enable end-to-end TLS encryption
1913
+
with clients. If used, must also pass --cert-file.
1914
+
--timeout TIMEOUT Default: 10.0. Number of seconds after which an inactive connection
1915
+
must be dropped. Inactivity is defined by no data sent or received by
1916
+
the client.
1895
1917
--version, -v Prints proxy.py version.
1896
-
--disable-http-proxy Default: False. Whether to disable proxy.HttpProxyPlugin.
--enable-devtools Default: False. Enables integration with Chrome Devtool Frontend. Also see --devtools-ws-path.
1899
-
--enable-static-server
1900
-
Default: False. Enable inbuilt static file server. Optionally, also use --static-server-dir to serve static content from custom directory. By default, static file server serves out of
1901
-
installed proxy.py python module folder.
1902
-
--enable-web-server Default: False. Whether to enable proxy.HttpWebServerPlugin.
1903
1918
--log-level LOG_LEVEL
1904
-
Valid options: DEBUG, INFO (default), WARNING, ERROR, CRITICAL. Both upper and lowercase values are allowed. You may also simply use the leading character e.g. --log-level d
1919
+
Valid options: DEBUG, INFO (default), WARNING, ERROR, CRITICAL. Both
1920
+
upper and lowercase values are allowed. You may also simply use the
Default: 1024. Maximum number of files (TCP connections) that proxy.py can open concurrently.
1926
+
Default: 1024. Maximum number of files (TCP connections) that
1927
+
proxy.py can open concurrently.
1910
1928
--plugins PLUGINS Comma separated plugins
1929
+
--disable-http-proxy Default: False. Whether to disable proxy.HttpProxyPlugin.
1911
1930
--ca-key-file CA_KEY_FILE
1912
-
Default: None. CA key to use for signing dynamically generated HTTPS certificates. If used, must also pass --ca-cert-file and --ca-signing-key-file
1931
+
Default: None. CA key to use for signing dynamically generated HTTPS
1932
+
certificates. If used, must also pass --ca-cert-file and --ca-
1933
+
signing-key-file
1913
1934
--ca-cert-dir CA_CERT_DIR
1914
-
Default: ~/.proxy.py. Directory to store dynamically generated certificates. Also see --ca-key-file, --ca-cert-file and --ca-signing-key-file
1935
+
Default: ~/.proxy.py. Directory to store dynamically generated
1936
+
certificates. Also see --ca-key-file, --ca-cert-file and --ca-
1937
+
signing-key-file
1915
1938
--ca-cert-file CA_CERT_FILE
1916
-
Default: None. Signing certificate to use for signing dynamically generated HTTPS certificates. If used, must also pass --ca-key-file and --ca-signing-key-file
1917
-
--ca-file CA_FILE Default: None. Provide path to custom CA file for peer certificate validation. Specially useful on MacOS.
1939
+
Default: None. Signing certificate to use for signing dynamically
1940
+
generated HTTPS certificates. If used, must also pass --ca-key-file
packages/certifi/cacert.pem. Provide path to custom CA bundle for
1945
+
peer certificate verification
1918
1946
--ca-signing-key-file CA_SIGNING_KEY_FILE
1919
-
Default: None. CA signing key to use for dynamic generation of HTTPS certificates. If used, must also pass --ca-key-file and --ca-cert-file
1947
+
Default: None. CA signing key to use for dynamic generation of HTTPS
1948
+
certificates. If used, must also pass --ca-key-file and --ca-cert-
1949
+
file
1920
1950
--cert-file CERT_FILE
1921
-
Default: None. Server certificate to enable end-to-end TLS encryption with clients. If used, must also pass --key-file.
1951
+
Default: None. Server certificate to enable end-to-end TLS encryption
1952
+
with clients. If used, must also pass --key-file.
1922
1953
--disable-headers DISABLE_HEADERS
1923
-
Default: None. Comma separated list of headers to remove before dispatching client request to upstream server.
1954
+
Default: None. Comma separated list of headers to remove before
1955
+
dispatching client request to upstream server.
1924
1956
--server-recvbuf-size SERVER_RECVBUF_SIZE
1925
-
Default: 1 MB. Maximum amount of data received from the server in a single recv() operation. Bump this value for faster downloads at the expense of increased RAM.
1957
+
Default: 1 MB. Maximum amount of data received from the server in a
1958
+
single recv() operation. Bump this value for faster downloads at the
1959
+
expense of increased RAM.
1926
1960
--basic-auth BASIC_AUTH
1927
-
Default: No authentication. Specify colon separated user:password to enable basic authentication.
1961
+
Default: No authentication. Specify colon separated user:password to
1962
+
enable basic authentication.
1928
1963
--cache-dir CACHE_DIR
1929
-
Default: A temporary directory. Flag only applicable when cache plugin is used with on-disk storage.
1964
+
Default: A temporary directory. Flag only applicable when cache
1965
+
plugin is used with on-disk storage.
1966
+
--filtered-upstream-hosts FILTERED_UPSTREAM_HOSTS
1967
+
Default: Blocks Facebook. Comma separated list of IPv4 and IPv6
1968
+
addresses.
1969
+
--enable-web-server Default: False. Whether to enable proxy.HttpWebServerPlugin.
1970
+
--enable-static-server
1971
+
Default: False. Enable inbuilt static file server. Optionally, also
1972
+
use --static-server-dir to serve static content from custom
1973
+
directory. By default, static file server serves out of installed
1974
+
proxy.py python module folder.
1930
1975
--static-server-dir STATIC_SERVER_DIR
1931
-
Default: "public" folder in directory where proxy.py is placed. This option is only applicable when static server is also enabled. See --enable-static-server.
1932
-
--pac-file PAC_FILE A file (Proxy Auto Configuration) or string to serve when the server receives a direct file request. Using this option enables proxy.HttpWebServerPlugin.
1976
+
Default: "public" folder in directory where proxy.py is placed. This
1977
+
option is only applicable when static server is also enabled. See
1978
+
--enable-static-server.
1979
+
--pac-file PAC_FILE A file (Proxy Auto Configuration) or string to serve when the server
1980
+
receives a direct file request. Using this option enables
1981
+
proxy.HttpWebServerPlugin.
1933
1982
--pac-file-url-path PAC_FILE_URL_PATH
1934
1983
Default: /. Web server path to serve the PAC file.
1935
1984
--filtered-client-ips FILTERED_CLIENT_IPS
1936
-
Default: 127.0.0.1,::1. Comma separated list of IPv4 and IPv6 addresses.
1985
+
Default: 127.0.0.1,::1. Comma separated list of IPv4 and IPv6
0 commit comments