App-Charon

 view release on metacpan or  search on metacpan

bin/charon  view on Meta::CPAN


The location of the config file is similarly dynamic.  The default is just
F<.charonrc> in the current directory.  The location can be overridden by
setting C<CHARON_CONFLOC>.  Currently the configuration file is L<JSONY>.

So to be clear, if you wanted to set a default for C<--query-param-auth>, you
can either:

=over 3

=item 1. Set C<CHARON_QUERY_PARAM_AUTH=password=station>

=item 2. Put a line like C< query_param_auth: password=station > in F<.charonrc>

=item 3. Set C<CHARON_CONFLOC> to F<~/.charonrc> and add a line like the above to that file.

=back

=head1 COMMANDLINE OPTIONS

=head2 single positional argument

 charon ~/code/DBIx-Class-Candy

bin/charon  view on Meta::CPAN


 charon --autoshutdown 1h3m20s

C<--autoshutdown> requires a single argument that expresses a duration.  The
point is so that you can timebox your file sharing and then after the duration
it will just go away, instead of you forgetting to shut it down and leaving it
running forever.

=head2 --query-param-auth

 charon --query-param-auth 'password=station'

 charon --query-param-auth ''

Query param auth is just a handy way to be able to send moderately authenticated
links to your friends.  This is on by default and generates a password with the
key of C<auth>, so links will be C<http://foo:3001/bar.tar.gz?auth=bd75z4j>.  If
you want to choose the key and value pass C<$key=$value>, so if you pass
C<password=42> you could use the link C<http://foo:3001/bar.tar.gz?password=42>.

Note that while this is on by default I may decide to change that in the future.

=head2 --index --no-index

 charon --no-index

This option is on by default, and allows the client to get an html based
directory listing.  You might turn this off if you want to have a bit more
security-through-obscurity to allow only sharing files you give people links to.



( run in 0.776 second using v1.01-cache-2.11-cpan-49f99fa48dc )