diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-12-24 17:24:07 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-24 17:24:07 +1300 |
commit | 37c97eeca5514b071dff98b7c05fa8bb8408a980 (patch) | |
tree | 8d31230fb601d7da87ee5d9da46a0a554c12b0ed /docs/config.rst | |
parent | 24751965f99daf83c82d9c1581f712ca24da9d3d (diff) | |
parent | 5167d59d63e8f70770119a26804feaad17fccb8f (diff) | |
download | mitmproxy-37c97eeca5514b071dff98b7c05fa8bb8408a980.tar.gz mitmproxy-37c97eeca5514b071dff98b7c05fa8bb8408a980.tar.bz2 mitmproxy-37c97eeca5514b071dff98b7c05fa8bb8408a980.zip |
Merge pull request #1865 from cortesi/admin
Release administrivia: changelog stub, contributors, bump to v1.0
Diffstat (limited to 'docs/config.rst')
-rw-r--r-- | docs/config.rst | 85 |
1 files changed, 6 insertions, 79 deletions
diff --git a/docs/config.rst b/docs/config.rst index ad55baed..1b0921ec 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -3,84 +3,11 @@ Configuration ============= -Mitmproxy is configured through a set of files in the users ~/.mitmproxy -directory. +Mitmproxy is configured with a YAML_ file, located at +``~/.mitmproxy/config.yaml``. We'll have complete documentation for all +supported options in the next release in the meantime, please consult the +source_ for a complete list of options and types. -mitmproxy.conf - Settings for the :program:`mitmproxy`. This file can contain any options supported by - mitmproxy. -mitmdump.conf - Settings for the :program:`mitmdump`. This file can contain any options supported by mitmdump. - -common.conf - Settings shared between all command-line tools. Settings in this file are over-ridden by those - in the tool-specific files. Only options shared by mitmproxy and mitmdump should be used in - this file. - -Syntax ------- - -Comments -^^^^^^^^ - -.. code-block:: none - - # this is a comment - ; this is also a comment (.ini style) - --- and this is a comment too (yaml style) - -Key/Value pairs -^^^^^^^^^^^^^^^ - -- Keys and values are case-sensitive -- Whitespace is ignored -- Lists are comma-delimited, and enclosed in square brackets - -.. code-block:: none - - name = value # (.ini style) - name: value # (yaml style) - --name value # (command-line option style) - - fruit = [apple, orange, lemon] - indexes = [1, 12, 35 , 40] - -Flags -^^^^^ - -These are boolean options that take no value but true/false. - -.. code-block:: none - - name = true # (.ini style) - name - --name # (command-line option style) - -Options -------- - -The options available in the config files are precisely those available as -command-line flags, with the key being the option's long name. To get a -complete list of these, use the ``--help`` option on each of the tools. Be -careful to only specify common options in the **common.conf** file - -unsupported options in this file will be detected as an error on startup. - -Examples --------- - -common.conf -^^^^^^^^^^^ - -Note that ``--port`` is an option supported by all tools. - -.. code-block:: none - - port = 8080 - -mitmproxy.conf -^^^^^^^^^^^^^^ - -.. code-block:: none - - palette = light +.. _YAML: http://www.yaml.org/start.html +.. _source: https://github.com/mitmproxy/mitmproxy/blob/master/mitmproxy/options.py |