forked from pgodschalk/swiperproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy.conf
111 lines (79 loc) · 2.8 KB
/
proxy.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[global]
;;;;;;;;;;;;;;;;;;;;;
;; Server settings ;;
;;;;;;;;;;;;;;;;;;;;;
;; The DNS-address your proxy resides on.
hostname=proxy.example.org
;; The ip to listen on. Normal ipv4 address or empty for all (*), localhost for 127.0.0.1
listen_ip_address=
;; The port to listen on for HTTP. This is the port your users connect
;; to. If you are using a reverse proxy, this is the port your HTTPD
;; should proxy to.
http_listen_port=8080
;; The port to listen on for HTTPS. See `http_listen_port`.
https_listen_port=40443
;; The ports to rewrite URLs to for HTTP and HTTPS.
http_port=80
https_port=443
;; The endpoints to rewrite URLs to for HTTP and HTTPs (to be used with
;; a reverse proxy).
http_endpoint=/
https_endpoint=/
;; Default reverse proxy scheme.
reverseproxy_scheme=http
;; The certificate to use for HTTPS connections. This should be
;; readable by the user with which you run SwiperProxy.
https_certificate=proxy.example.org.pem
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Optimization settings ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Number of request handler threads.
threadpool_size=64
;; The maximum post size in bytes. Post sizes exceeding this value will
;; be dropped.
max_post_size=1048576
;; The maximum page size in bytes. Page sizes exceeding this value will
;; be dropped.
max_page_size=5242880
;; GZIP compression level to be used. Keep in mind that using data
;; compression in conjunction with HTTPS is vulnerable to
;; CRIME/BREACH-attacks.
gzip_level = 9
;; Compress responses to clients?
gzip_client_response = no
;; Accept GZIP-compressed responses from servers?
gzip_server_response = yes
;; The read/write timeout in seconds of servers your users try to
;; connect to through your proxy.
upstream_timeout=5
;; The connect timeout in seconds of servers your users try to connect
;; to through your proxy.
upstream_connect_timeout=10
;; The read/write timeout in seconds of your clients.
client_timeout=30
;; Attempt to resolve the reverse DNS of client IP addresses before
;; writing to log?
client_resolve=no
;;;;;;;;;;;;;;;;;;;
;; MISCELLANEOUS ;;
;;;;;;;;;;;;;;;;;;;
;; Location of static HTML files served when users visit your proxy
;; directly.
files_location=/opt/SwiperProxy/swiperproxy/htdocs
;; A comma-separated list of client headers to be filtered.
filter_headers=x-forwarded-for,x-real-ip
;; Inject a faked robots.txt to block crawlers? This will override the
;; robots.txt file of proxied servers your users visit.
block_robots=yes
;; Add an X-Forwarded-For header with the client IP?
use_forwarded_for=no
;; Filename of a blocklist.
block_list=blocklist.txt
;; URL your users will be rewritten to when attempting to browse to a
;; blocked server.
block_target=
;; Location of logfiles.
access_log=/var/log/swiperproxy/access.log
error_log=/var/log/swiperproxy/error.log
[rewrites]
# example.org=example.org