perlancar

NAME

https_this - Export the current directory over HTTPS

VERSION

This document describes version 0.001 of https_this (from Perl distribution App-HTTPSThis), released on 2017-10-11.

SYNOPSIS

 ## Export the current directory with HTTPS
 $ https_this

 ## Export the dir_name directory with HTTPS, specify SSL certificate and key
 $ https_this dir_name --ssl-cert server.crt --ssl-key server.key

 ## Start the server on a specific port
 $ https_this --port 9443

 ## Announces the HTTPS server via Bonjour with the specified name
 $ https_this --name "My cool webserver"

 ## Show documentation about our options
 $ https_this --help

 ## Show the entire man page
 $ https_this --man

DESCRIPTION

Like http_this but uses HTTPS instead of HTTP. Will create a self-signed SSL certificate if SSL certificate/key is not specified.

TODO: Merge with App::HTTPThis.

ARGUMENTS

The script accepts a single optional argument: the path of the directory to export.

OPTIONS

The following options are available:

--port PORT

Start the HTTPS server on a specific PORT. Default is 8443.

--name NAME

Announces the server over Bonjour.

This feature requires the Net::Rendezvous::Publish module and the appropriate backend for your operating system, both available from CPAN. If one of them cannot be found, a warning message will be displayed.

--ssl-cert PATH

Specify SSL certificate file.

--ssl-key PATH

Specify SSL key file.

--help

Print information about the script usage and its options.

--man

Print the entire man page for the command.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-HTTPSThis.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-HTTPSThis.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-HTTPSThis

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.