Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Onion Services
Onionmine
Commits
60cf366e
Verified
Commit
60cf366e
authored
May 05, 2022
by
Silvio Rhatto
Browse files
Feat(config): adds PASSPHRASE_COMMAND parameter
parent
4804f6c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/mine
View file @
60cf366e
...
...
@@ -54,6 +54,11 @@ echo ">started at: $DATE" > $LOG
echo
">build flags:
$MKP224O_BUILD_FLAGS
"
>>
$LOG
cat
$FILTERS
| xargs
echo
">filters:"
>>
$LOG
# Check for PASSPHRASE_COMMAND
if
[
!
-z
"
$PASSPHRASE_COMMAND
"
]
;
then
PASSPHRASE
=
"
`
$PASSPHRASE_COMMAND
`
"
fi
# Run
echo
"
$BASENAME
: starting mkp224o..."
$BASEDIR
/bin/mkp224o
$MKP224O_RUN_FLAGS
2>&1 |
tee
-a
$LOG
onionmine.conf.sample
View file @
60cf366e
...
...
@@ -85,9 +85,15 @@ MKP224O_RUN_FLAGS="-s -d $CANDIDATES -f $FILTERS -B"
# Store the passphrase in a variable (not recommended)
#PASSPHRASE=""
# Fetch the passphrase using https://0xacab.org/rhatto/keyringer/
# Different values of $CONFIG might have different keys
#PASSPHRASE="`keyringer my-keyring decrypt onionmine/$CONFIG/passphrase 2> /dev/null | head -1`"
# Fetch the passphrase an external command
#
# Any external command can be used as long as it returns a passphrase in the
# standard output.
#
# Different values of $CONFIG might have different keys.
#
# The following example uses https://0xacab.org/rhatto/keyringer/
#PASSPHRASE_COMMAND="keyringer my-keyring decrypt onionmine/$CONFIG/passphrase 2> /dev/null | head -1"
#
# Other options
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment