Project

General

Profile

Actions

Feature #13714

closed

Add https support to "httpd" function inside of "un.rb"

Added by flavio (Flavio Castelli) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:81901]

Description

As you know it's possible to run a minimalistic http server using the "httpd" function defined inside of the "un.rb" file:

ruby -run -e httpd . -p 5000

Unfortunately it's not possible to start a minimalistic https server. The following patch allows this feature:

ruby -run -e httpd . -p 5000 --bind-address=0.0.0.0 --ssl-certificate ~/secure/minimal.pem --ssl-private-key ~/secure/minimal.key

Files

add-https-support-to-httpd-function.rb (1.15 KB) add-https-support-to-httpd-function.rb Patch implementing the feature - against trunk flavio (Flavio Castelli), 07/04/2017 04:08 PM

Updated by shevegen (Robert A. Heiler) over 6 years ago

Guess it makes sense.

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r59265.


un.rb: support https

Actions

Also available in: Atom PDF

Like0
Like0Like0