#!/usr/bin/env perl


use strict;
use warnings;
use App::ProxyThat;

# ABSTRACT: Proxy the given URL from the command line




=encoding UTF-8

=head1 NAME

proxy_that - Proxy the given URL from the command line

=head1 VERSION

version 0.001


    ## Rnu a proxy to https://example.org on http://localhost:3080
    $ proxy_that https://example.org

    ## Proxy port 80 on your virtual machine to your local port 80
    # sudo proxy_that --port 80 http://vm.local.example.org

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

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


This utility starts a L<Plack> based proxy server that forwards requests
to one URL. It can create a throw-away SSL certificate and run over https,
which makes it easy to provide encrypted endpoints for local development
if your frontend has to run on https.

=head1 OPTIONS

The following options are available:

=over 4

=item --ssl

Generate a new temporary SSL certificate and run over https instead of http.
Does not change the default port.

=item --port PORT

Start the HTTP server on a specific C<PORT>. Default is 3080.

=item --help

Print information about the script usage and its options.

=item --man

Print the entire man page for the command.


=head1 AUTHOR

simbabque <simbabque@cpan.org>


This software is copyright (c) 2021 by simbabque.

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