summaryrefslogtreecommitdiffstats
path: root/servers
Commit message (Collapse)AuthorAgeFilesLines
* Support optional parameter to not enable sslAndrew Geissler2018-04-101-19/+40
| | | | | | | | | | | | | | This server can be started in two different ways: 1. Via systemd socket, which can itself come in two different paths: a. Direct bind to external HTTPS port 443 b. Reverse proxy to local port like 8081 2. Via command line call This commit keeps backward compatibility and allows this new --no-ssl option to be passed in when using a proxy. Change-Id: I713b53e492862684eb6db45c602ce3c9e8e2f453 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Port to python 3CamVan Nguyen2018-03-141-1/+1
| | | | | | | | | | Port code to python 3 yet remain backward compatible to python 2. This port is in preparation for yocto 2.4 upgrade. Partially resolves openbmc/openbmc#2920 Change-Id: I418395fc7fbda247d702551af69cbedbbdc3a7aa Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Fix-up broken event notificationDeepak Kodihalli2018-03-131-2/+0
| | | | | | | | Commit 91ff110 broke the event notification feature, by creating a duplicate App object, that's not passed the input keywords. Change-Id: If92ea10c11aade3a846dfae718f2d5e11e3e34eb Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Phosphor-gevent: Pass the kwargs while creating WSGIServerRatan Gupta2018-01-311-1/+2
| | | | | | | It was missed in earlier commit Change-Id: Ib1ee9610e7e2a31e9247cab212eddf8b84af1011 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Configure new ssl certificateRatan Gupta2018-01-231-44/+42
| | | | | | | | | | | As the web server certificate got expired so configuring the new one. I would come up with proposal for certificate management. Partially Resolves openbmc/openbmc#2423 Change-Id: I69642cb324b8030c7cd21f5efbbadbf2ce459e18 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Security: Disable weak ciphersRatan Gupta2018-01-231-1/+18
| | | | | | | | | Configure the strong ciphers while web server starts. Partially Resolves openbmc/openbmc#2423 Change-Id: I6aad0b292d3755a879e407784dce6a57fd217948 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* phosphor-gevent: fix pep8 complaintsDeepak Kodihalli2017-10-181-2/+2
| | | | | | | Fix under-indented lines. Change-Id: Ic1df92e0699107dd2eafb097ebf74b9f5835eb84 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* phosphor-gevent: enable websocket supportDeepak Kodihalli2017-10-181-2/+13
| | | | | | | | | | Set 'WebSocketHandler' as the handler_class. Websockets are being supported to allow the REST server to be able to "push" events to clients. Change-Id: I4c5536ae9070635c00330bb59fc93d3b4382b461 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add python-gevent startup scriptBrad Bishop2016-08-304-0/+57
| | | | | | | | Add a python-gevent startup script that takes a WSGI application as a parameter. Change-Id: I4c637538a1c6d4aa92563d548a2d8673299a23bb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Split server and applicationBrad Bishop2016-08-306-0/+104
Provide the REST server as a python module, enabling it to be hosted by any WSGI provider. Provide a Rocket startup script with configurable WSGI application. Change-Id: I1a9c25b10c33b08dfb8f60dc6c33aaf727562a9f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud