github.com/decred/politeia@v1.4.0/politeiawww/cmd/politeiavoter/sampleconfig/sampleconfig.go (about)

     1  // Copyright (c) 2017 The Decred developers
     2  // Use of this source code is governed by an ISC
     3  // license that can be found in the LICENSE file.
     4  
     5  package sampleconfig
     6  
     7  // FileContents is a string containing the commented example config for dcrd.
     8  const FileContents = `[Application Options]
     9  
    10  ; ------------------------------------------------------------------------------
    11  ; Data settings
    12  ; ------------------------------------------------------------------------------
    13  
    14  ; The directory to store data such as the logs and journals. The default is 
    15  ; ~/.politeiavoter on POSIX OSes, $LOCALAPPDATA/Politeiavoter on Windows,
    16  ; ~/Library/Application Support/Politeiavoter on macOS, and 
    17  ; $homed/politeiavoter/data on Plan9.  Environment variables are expanded so they
    18  ; may be used.  NOTE: Windows environment variables are typically %VARIABLE%, but
    19  ; they must be accessed with $VARIABLE here.
    20  ; appdata=~/.politeiavoter                            ; Unix
    21  ; appdata=$LOCALAPPDATA/Politeiavoter                 ; Windows
    22  ; appdata=~/Library/Application Support/Politeiavoter ; macOS
    23  
    24  ; ------------------------------------------------------------------------------
    25  ; Network settings
    26  ; ------------------------------------------------------------------------------
    27  
    28  ; Use testnet.
    29  ; testnet=1
    30  
    31  ; Connect via a SOCKS5 proxy. This is required when trickling votes.
    32  ; The SOCKS5 proxy is assumed to be Tor (https://www.torproject.org).
    33  ; trickle=1
    34  ; proxy=127.0.0.1:9050
    35  ; proxyuser=
    36  ; proxypass=
    37  
    38  ; ------------------------------------------------------------------------------
    39  ; Wallet
    40  ; ------------------------------------------------------------------------------
    41  
    42  ; Politeiavoter requires wallet access to verify which votes belong to user. All
    43  ; call are run over GRPC and require the wallet GRPC certificate and wallet
    44  ; password.
    45  ; wallethost=localhost
    46  ; walletgrpccert=~/.dcrwallet/rpc.cert
    47  ; walletpassphrase=
    48  
    49  ; Client certificates are required to communicate with dcrwallet. Generate a
    50  ; client certificate key using the gencerts utility that is provided by dcrd.
    51  ; For example, on a machine with a local wallet, client certificates can be
    52  ; generated using the following command:
    53  ;
    54  ; $ gencerts ~/.politeiavoter/client{,-key}.pem
    55  ;
    56  ; The 'client.pem' must then be appened onto '~/.dcrwallet/clients.pem'. This
    57  ; can be done using the following command:
    58  ;
    59  ; $ cat ~/.politeiavoter/client.pem >> ~/.dcrwallet/clients.pem
    60  ;
    61  ; NOTE: dcrwallet looks for the file called clients.pem (plural).
    62  ; clientcert=~/.politeiavoter/client.pem
    63  ; clientkey=~/.politeiavoter/client-key.pem
    64  
    65  
    66  ; ------------------------------------------------------------------------------
    67  ; Debug
    68  ; ------------------------------------------------------------------------------
    69  
    70  ; Debug logging level.
    71  ; Valid levels are {trace, debug, info, warn, error, critical}
    72  ; You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set
    73  ; log level for individual subsystems.  Use dcrd --debuglevel=show to list
    74  ; available subsystems.
    75  ; debuglevel=info
    76  
    77  ; ------------------------------------------------------------------------------
    78  ; Profile - enable the HTTP profiler
    79  ; ------------------------------------------------------------------------------
    80  
    81  ; The profile server will be disabled if this option is not specified.  Profile
    82  ; information can be accessed at http://ipaddr:<profileport>/debug/pprof once
    83  ; running.  Note that the IP address will default to 127.0.0.1 if an IP address
    84  ; is not specified, so that the profiler is not accessible on the network.
    85  ; Listen on selected port on localhost only:
    86  ;   profile=6061
    87  ; Listen on selected port on all network interfaces:
    88  ;   profile=:6061
    89  ; Listen on single network ipv4 interface:
    90  ;   profile=192.168.1.123:6061
    91  ; Listen on ipv6 loopback interface:
    92  ;   profile=[::1]:6061
    93  `