Changeset 138 in code


Ignore:
Timestamp:
Apr 4, 2021, 3:55:25 AM (4 years ago)
Author:
3nprob
Message:

Update README

  • Include parameters
  • Remove unused Docker volume from example
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.md

    r131 r138  
    3131```
    3232
     33### Usage
     34
     35```
     36  -debug
     37        Debug mode (default true)
     38  -followredirect
     39        Follow HTTP GET redirect
     40  -ipv6
     41        Allow IPv6 HTTP requests (default true)
     42  -key string
     43        HMAC url validation key (base64 encoded) - leave blank to disable validation
     44  -listen string
     45        Listen address (default "127.0.0.1:3000")
     46  -proxy string
     47        Use the specified HTTP proxy (ie: '[user:pass@]hostname:port'). Overrides -socks5, -ipv6.
     48  -proxyenv
     49        Use a HTTP proxy as set in the environment (HTTP_PROXY, HTTPS_PROXY and NO_PROXY). Overrides -proxy, -socks5, -ipv6.
     50  -socks5 string
     51        Use a SOCKS5 proxy (ie: 'hostname:port'). Overrides -ipv6.
     52  -timeout uint
     53        Request timeout (default 5)
     54  -version
     55        Show version
     56```
     57
    3358### Environment variables
    3459
    35 Morty can be configured using the following environment variables:
     60Morty can additionally be configured using the following environment variables:
    3661- `MORTY_ADDRESS`: Listen address (default to `127.0.0.1:3000`)
    3762- `MORTY_KEY`: HMAC url validation key (base64 encoded) to prevent direct URL opening. Leave blank to disable validation. Use `openssl rand -base64 33` to generate.
     
    4166
    4267```
    43 docker run -e DEBUG=false -e MORTY_ADDRESS=0.0.0.0:3000 -v ./rules.json:/etc/filtron/rules.json:rw dalf/morty
     68docker run -e DEBUG=false -e MORTY_ADDRESS=0.0.0.0:3000 dalf/morty
    4469```
    4570
    4671```
    47 docker run -e DEBUG=false -v ./rules.json:/etc/filtron/rules.json:rw dalf/morty -listen 0.0.0.0:3000
     72docker run -e DEBUG=false dalf/morty -listen 0.0.0.0:3000
    4873```
    4974
Note: See TracChangeset for help on using the changeset viewer.