180 Commits

Author SHA1 Message Date
Benoit Chesneau
c16abf922e fix example to work on python3
* fix longpoll example

* fix websocket example

* fix django example

* fix flask exampl
2018-09-04 12:18:05 +02:00
Hugo
e974f30517 Drop support for Python 2
Co-Authored-By: Dustin Ingram <di@users.noreply.github.com>
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
2018-08-01 15:31:17 +03:00
Randall Leeds
7891310d80 Use consistent style in nginx.conf 2018-06-17 13:19:42 -07:00
Patrick
66ec021291
All good
… final edits.
2018-05-19 00:54:48 -07:00
Patrick
a80052e66a
Changes based on feedback
I also changed the location for access.log
2018-05-19 00:01:05 -07:00
Patrick
a047d4f23f
Pid and Logging changes
PID didn't work at all on Ubuntu 16.04 with the provided sample, my commented out change does, also added logging change to conform to what is out of the box.
2018-05-16 12:11:18 -07:00
Berker Peksag
01a1c7ca9a
Add an example for the raw_env setting
Refs #1472
2018-03-27 14:29:30 +03:00
Randall Leeds
b07532be75 Forbid contradictory secure scheme headers
When a request specifies contradictory secure scheme headers, raise a
parse error.
2018-01-10 12:10:35 -08:00
Berker Peksag
2dd7321c90
Deprecate gaiohttp worker and document alternatives (#1569)
Fixes #1338
2017-10-31 07:30:41 +03:00
Berker Peksag
31b8e48a78 Silence prospector warnings 2017-02-07 09:05:43 +03:00
Berker Peksag
9fad8ab6f5 Remove outdated documentation about using entry points
Closes #1365
2017-02-05 01:24:49 +03:00
Berker Peksag
6dbbaa595b Modernize CherryPy example 2016-09-17 13:23:30 +03:00
Vicky
e549835c54 Remove outdated frameworks from examples/frameworks/
Closes #1346
2016-09-17 13:17:48 +03:00
benoitc
d3307cdfa5 add an app example using readline 2016-05-14 17:29:01 +02:00
Phil Jones
9d158bec94 Add access_log_format to config example (#1251)
The example given is the current default log format.
2016-05-03 14:15:36 +03:00
benoitc
e005c9d93a reverse change in example_config.py 2016-05-02 15:05:15 +02:00
benoitc
66546d66df fix #1246 2016-05-02 15:04:30 +02:00
Berker Peksag
07428ddbfe Merge branch 'delete-old-django-app' 2016-04-15 00:40:39 +03:00
felipe
06c1429af7 Add an example to demonstrate using a Django setting file as Gunicorn config 2016-04-15 00:35:31 +03:00
Berker Peksag
36d2c4d809 Delete old Django 1.1-1.3 example 2016-04-15 00:19:38 +03:00
Arnav Kumar
680f8d7281 Fix URL and default worker type in example_config 2016-02-18 01:03:38 +08:00
benoitc
5f4ebd2eb2 don't return utf8 header in example
Since the updated RFC 7230 implys that new Headers Key and Value should be
sent as USASCII only don't try to test utf8 headers in examples.

We now only encode them to ascii. Gunicorn will fail if it's unable to encode
them letting the responsability to the application to correctly encode the
response. (we are just a gateway).

While i'm here simplify the code to not create an extra function only used at
one place.

NOTE: if anyone come to a better solution, i am happy to revisit it on the
next release.

fix #1151
2015-11-25 13:29:46 +01:00
Berker Peksag
353f610c1e Do not duplicate nginx config files.
Fixes #1050
2015-09-26 11:33:12 +03:00
lovedboy
ac4292f60e add web.py frameworks example 2015-09-22 21:09:19 +08:00
Berker Peksag
b5d188422e Tweak some examples.
* Return bytes in Python 3
* Activate wsgiref.validate.validator
* Remove unused imports
2015-07-08 13:53:19 +03:00
Carl Meyer
2169b044d6 Update example nginx configs to require Host match. 2015-06-15 16:59:34 -06:00
siznax
b054b7e91c fixed syntax error in examples/gunicorn_rc. 2015-02-26 15:56:32 -08:00
Menghan
51bd1b12a1 remove option --debug and update documents 2014-10-17 11:40:03 +08:00
Collin Anderson
0d3045bb41 cleaned some code 2014-09-10 20:34:22 -04:00
Collin Anderson
03fbe9429d clean whitespace 2014-09-10 09:52:12 -04:00
Collin Anderson
fcde3f0e6e example django app: removed warnings on django 1.8
compatible with django 1.4+
2014-09-09 11:29:49 -04:00
Collin Anderson
c9fc89d11e removed supervisor.conf autostart=true
it's true by default.
2014-09-05 17:38:25 -07:00
Edvinas Jurevicius
69c16db93c Fix supervisor.conf example 2014-09-05 22:20:26 +01:00
benoitc
f9d4144add fix tornado example.
bad command line in example. fix #861
2014-08-21 14:43:56 +02:00
Daniel Quinn
f495a865c5 Typo
s/suite/suit/
2014-07-26 22:43:04 +02:00
benoitc
05409f92af example: edit paste example to allow the display of gunicorn logs 2014-07-26 11:24:29 +02:00
benoitc
43b8687ceb fix django ex 2014-07-26 10:24:26 +02:00
benoitc
aacfba1aed fetch all input body in gaiohttp to work w/ non asyncio wsgi apps
I took the suggestion of @asvetlov. This change load first all the body
in RAM in the gaiohttp worker to handle classic WSGI application. This
is a temporary fix, it should be replaced asap by a streaming behaviour.
It does the trick anyway for most application since you're not supposed
to handle large body directly with gunicorn.

fix #803
2014-06-28 16:38:01 +02:00
Stéphane Wirtel
944e224d36 Fix typo in the examples 2014-06-16 17:51:34 +02:00
Benoit Chesneau
94f2cc03e1 Merge pull request #786 from zeezooz/fix_signals
Change the rest of QUIT and TERM signals.
2014-06-13 22:40:03 +02:00
Andrew Burdo
ed2d2a8ab3 Change the rest of QUIT and TERM signals.
This will restore graceful shutdown of workers by master.
Also worker_int callback is moved from handle_exit (INT and TERM before switching) to handle_quit(INT and QUIT).
2014-06-13 14:32:11 +03:00
Berker Peksag
1c68516fd7 Update custom application example.
It's running on both Python 2 and 3 now.
2014-06-13 14:26:57 +03:00
Randall Leeds
ae14150cad Merge pull request #727 from benoitc/feature/threaded-worker
Feature/threaded worker
2014-06-01 14:16:44 -07:00
benoitc
64fd52354c fix comment in timeout example. 2014-06-01 21:59:50 +02:00
benoitc
d9b7e32d34 try to log what happened in the worker after a timeout.
fix #518
2014-06-01 11:22:19 +02:00
Matt Robenolt
0e78e78598 Update nginx config to reflect best practice
Should use `try_files` then fall back to a named location block. This is also what's recommended inside the docs already: http://gunicorn-docs.readthedocs.org/en/latest/deploy.html#nginx-configuration
2014-05-26 20:20:15 -07:00
benoitc
6aa99e4441 fix keepalive 2014-05-13 12:30:57 +02:00
Randall Leeds
fd22ea24ae Merge pull request #727 from benoitc/feature/651
PR that rebase #651. Should also fix #625.

Add the capability to load gunicorn.base.Application without the
loading of the arguments of the command line.
2014-05-07 14:53:29 -07:00
Stéphane Wirtel
a44807f9f5 Add an example of a standalone app 2014-04-22 21:48:57 +02:00
Randall Leeds
dc7dc14229 More logging.conf example typos 2014-02-20 02:00:23 -08:00