198 Commits

Author SHA1 Message Date
Benoit Chesneau
e75c3533e3
Merge pull request #3189 from pajod/patch-py36
chore: eat Python 2 leftovers
2024-08-10 10:40:40 +02:00
Benoit Chesneau
5f820ce37c
Merge pull request #3167 from tbascoul/tiny-example-config-fix
update example_config with latest settings
2024-08-07 00:19:34 +02:00
Benoit Chesneau
5e39f88622
Update tornadoapp.py 2024-08-06 17:50:16 +02:00
Paul J. Dorn
4f7766585d Python 3.3+: replace deprecated aliases
since 3.3: EnvironmentError, IOError, socket.error and select.error are merged into IOError.
They may now return a more specific subclass - which this commit does not utilize yet.
2024-04-22 03:33:31 +02:00
Paul J. Dorn
422b18acea class Name(object): -> class Name: 2024-04-22 03:33:30 +02:00
Paul J. Dorn
4323027b1e drop long-default - coding: utf-8 2024-04-22 03:33:14 +02:00
Theo Bascoul
1954fb63f1 update example_config with latest settings 2024-03-18 16:14:14 +01:00
Tero Saarni
362a52bd84 Added parameter to ssl_context hook for constructing default context
Signed-off-by: Tero Saarni <tero.saarni@est.tech>
2022-02-11 19:26:56 +02:00
Tero Saarni
5a581c0b14 Update SSLContext handling
* Change deprecated ssl.wrap_socket() to SSLContext.wrap_context().
* Add new server hook to allow user to create custom SSLContext.
* Updated the documentation.

Signed-off-by: Tero Saarni <tero.saarni@est.tech>
2021-09-12 17:39:06 +03:00
Hugo van Kemenade
45687c358c Replace deprecated unittest alias 2021-08-18 13:09:03 +03:00
Christian Clauss
7e16d13011
Port websocket examples to Python 3 (#2371) 2020-07-02 23:34:11 +03:00
Tim Gates
f626830cde
Fix simple typo: convertable -> convertible
There is a small typo in examples/websocket/gevent_websocket.py, examples/websocket/websocket.py.
Should read `convertible` rather than `convertable`.
2020-03-01 19:14:18 +11:00
Brett Randall
c1bea68fce
Added a set of pip requirements files to cover the examples in examples/frameworks.
Signed-off-by: Brett Randall <javabrett@gmail.com>
2020-01-14 06:25:46 +11:00
benoitc
499dcd4021 add a simple example to test module path 2019-11-21 10:18:07 +01:00
Benoit Chesneau
e147feaf8b fix echo example on python 3.7 2019-09-27 23:15:59 +02:00
Brett Randall
879651bb6f Header values are encoded using latin-1, not ascii.
This commit reverts one aspect changed by 5f4ebd2eb2b08783a5fbefe79d09fcb3fc1fbc73 (#1151);
header-values are again encoded as latin-1 and not ascii. Test is restored but uses
a latin-1-mappable test-character, not a general utf8 character.

Fixed #1778.

Signed-off-by: Brett Randall <javabrett@gmail.com>
2019-04-18 04:23:19 +03:00
Marat
a8963ef1a5 Remove redundant super() arguments 2019-03-16 15:00:07 -07:00
Benoit Chesneau
fe7632fe37 make sure all examples work on python 3
fix #1961
2019-01-24 23:19:38 +01:00
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