Project

General

Profile

Feature #13714

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

Added by flavio (Flavio Castelli) almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
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) almost 3 years ago

Guess it makes sense.

#2

Updated by nobu (Nobuyoshi Nakada) almost 3 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r59265.


un.rb: support https

Also available in: Atom PDF