Verified Commit 0933f276 authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Feat(config): per-pool environment override

parent ff522471
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -58,6 +58,12 @@ Run the above `make config` command for each Onion Service you're mining keys.
Configuration and mined keys are stored under the `pool/my-pool` folder, with
mined keys at the `pool/my-pool/candidates`.

### Per-pool environment override

Custom environment overrides are possible. For the `my-pool` config, place any
overrides at the `pools/my-pool/env` file, which are parsed after the default
`.env` folder.

### Recompiling

If by any change a `mkp224o` recompilation is neeed without triggering
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
## Basic

* [x] Logfile support.
* [ ] Support for per-pool environment file, that's parsed
* [x] Support for per-pool environment file, that's parsed
      after the project-wide `.env` and can override
      default configuration.

+7 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ LOGS="$POOL/logs"
LOG="$LOGS/$DATE.log"
CANDIDATES="$POOL/candidates"
DEPENDENCIES="gcc libsodium-dev make autoconf"
ENV_LOCAL="$POOL/env"

# Default flags used for mkp224o compilation
#MKP224O_BUILD_FLAGS="--enable-amd64-51-30k --enable-intfilter --enable-binsearch --enable-besort"
@@ -41,7 +42,12 @@ MKP224O_BUILD_FLAGS="--enable-intfilter=native"
# Default flags used for mkp224o invocation
MKP224O_RUN_FLAGS="-s -d $CANDIDATES -f $FILTERS -B"

# Source the environment file
# Source the project-wide environment file
if [ -e "$ENV" ]; then
  source $ENV
fi

# Source the per-pool environment file
if [ ! -z "$CONFIG" ] && [ -e "$ENV_LOCAL" ]; then
  source $ENV_LOCAL
fi
+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ bootloader="grub"
#qemu_opts=""

# Number of CPUs
smp="4"
smp="7"

# Enviroment passed to SSH commands
#ssh_env="TERM=xterm"