Put a line like query_param_auth: password=station in. Set CHARON_QUERY_PARAM_AUTH=password=station 2. So to be clear, if you wanted to set a default for -query-param-auth, you can either: 1. Currently the configuration file is JSONY. The location can be overridden by setting CHARON_CONFLOC. The location of the config file is similarly dynamic. If $foo exists in the config file, use that to set foo If CHARON_$FOO is set, use that to set foo Currently all the configuration allows you to do is set defaults for the commandline options. CONFIGURATIONĬharon uses a configuration system I developed that allows the user to use either a file, or environment variables, or both. charon helps with this by making some of what used to be Plack oneliners into a much more robust and convenient tool. I have found that at work I often have trouble ensuring all the various permissions are correct and all the various machines have the right tools and whatnot to serve files from one machine to another. The rivers Styx and Acheron that divided the world of the living from the worldĬharon is a tool for easily sharing files. Here's an example of using it with all the switches: charon ~ -listen *:8080 -autoshutdown 1h -query-param-auth '' -no-index DESCRIPTION Charon is the ferryman of Hades who carries souls of the newly deceased across Now you can navigate to and download files under /home/frew. Serving /home/frew on 0.0.0.0:3000 with a query param auth of ?auth=br5Y2jX55 Charon - Share files over HTTP easily and conveniently VERSION
0 Comments
Leave a Reply. |