#!/usr/bin/env perl package proxy_that; use strict; use warnings; use App::ProxyThat; # ABSTRACT: Proxy the given URL from the command line App::ProxyThat->new->run; __END__ =pod =encoding UTF-8 =head1 NAME proxy_that - Proxy the given URL from the command line =head1 VERSION version 0.001 =head1 SYNOPSIS ## 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 =head1 DESCRIPTION This utility starts a L 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. Default is 3080. =item --help Print information about the script usage and its options. =item --man Print the entire man page for the command. =back =head1 AUTHOR simbabque =head1 COPYRIGHT AND LICENSE 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. =cut