1
1
proxy_py README
2
2
===============
3
3
4
- proxy_py is a program which collects proxies, saves them in a database
5
- and makes periodically checks.
4
+ proxy_py is a program which collects proxies, saves them in
5
+ a database and makes periodically checks.
6
6
It has a server for getting proxies with nice API(see below).
7
7
8
8
Where is the documentation?
9
9
***************************
10
10
11
- It's here -> http ://proxy-py.readthedocs.io
11
+ It's here -> https ://proxy-py.readthedocs.io
12
12
13
13
How to build?
14
14
*************
@@ -48,7 +48,7 @@ I'm too lazy. Can I just use it?
48
48
49
49
`TODO: update, old version! `
50
50
51
- Yes , you can download virtualbox image
51
+ Yep , you can download virtualbox image
52
52
here -> https://drive.google.com/file/d/1oPf6xwOADRH95oZW0vkPr1Uu_iLDe9jc/view?usp=sharing
53
53
54
54
After downloading check that port forwarding is still working,
@@ -203,7 +203,7 @@ anything, just run
203
203
204
204
inside virtual environment in proxy_py project directory.
205
205
206
- How to deploy on production using supervisor, nginx and postgresql in 8 steps?
206
+ How to deploy on production using supervisor, nginx and postgresql in 9 steps?
207
207
******************************************************************************
208
208
209
209
1 Install supervisor, nginx and postgresql
@@ -212,15 +212,26 @@ How to deploy on production using supervisor, nginx and postgresql in 8 steps?
212
212
213
213
root@server:~ $ apt install supervisor nginx postgresql
214
214
215
- 2 Create virtual environment and install requirements on it
215
+ 2 Clone this repository
216
216
217
- 3 Copy settings.py example:
217
+ .. code-block :: bash
218
+
219
+ user@server:~ /$ git clone https://github.com/DevAlone/proxy_py.git
220
+
221
+ 3 Create virtual environment and install requirements on it
222
+
223
+ .. code-block :: bash
224
+
225
+ user@server:~ /proxy_py$ python3 -m venv env
226
+ user@server:~ /proxy_py$ pip3 install -r requirements.txt
227
+
228
+ 4 Copy settings.py example:
218
229
219
230
.. code-block :: bash
220
231
221
- proxy_py@server:~ /proxy_py$ cp config_examples/settings.py proxy_py /
232
+ proxy_py@server:~ /proxy_py$ cp config_examples/settings.py . /
222
233
223
- 4 create unprivileged user in postgresql database
234
+ 5 create unprivileged user in postgresql database
224
235
and change database authentication data in settings.py
225
236
226
237
.. code-block :: bash
@@ -237,22 +248,22 @@ and change database authentication data in settings.py
237
248
# 'max_connections': 20,
238
249
}
239
250
240
- 5 Copy supervisor config example and change it for your case
251
+ 6 Copy supervisor config example and change it for your case
241
252
242
253
.. code-block :: bash
243
254
244
255
cp /home/proxy_py/proxy_py/config_examples/proxy_py.supervisor.conf /etc/supervisor/conf.d/proxy_py.conf
245
256
vim /etc/supervisor/conf.d/proxy_py.conf
246
257
247
- 6 Copy nginx config example, enable it and change if you need
258
+ 7 Copy nginx config example, enable it and change if you need
248
259
249
260
.. code-block :: bash
250
261
251
262
cp /home/proxy_py/proxy_py/config_examples/proxy_py.nginx.conf /etc/nginx/sites-available/proxy_py
252
263
ln -s /etc/nginx/sites-available/proxy_py /etc/nginx/sites-enabled/
253
264
vim /etc/nginx/sites-available/proxy_py
254
265
255
- 7 Restart supervisor and Nginx
266
+ 8 Restart supervisor and Nginx
256
267
257
268
.. code-block :: bash
258
269
@@ -261,7 +272,7 @@ and change database authentication data in settings.py
261
272
/etc/init.d/nginx configtest
262
273
/etc/init.d/nginx restart
263
274
264
- 8 Enjoy using it on your server!
275
+ 9 Enjoy using it on your server!
265
276
266
277
What is it depend on?
267
278
*********************
0 commit comments