diff options
author | clsr <clsr@clsr.net> | 2016-11-15 15:24:40 +0100 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2016-11-15 15:24:40 +0100 |
commit | 0757a76da7ea2973d41647c53db633ff6e1405bc (patch) | |
tree | ee6c9282be128158fc6deb809feb88d5ff9dd049 | |
parent | 9d7c89c63b0fdef53aa308e9db3aa834eca85c93 (diff) | |
download | gomf-tools-0757a76da7ea2973d41647c53db633ff6e1405bc.tar.gz gomf-tools-0757a76da7ea2973d41647c53db633ff6e1405bc.zip |
Update run-gomf.bash for gomf-0.5.0
-rwxr-xr-x | run-gomf.bash | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/run-gomf.bash b/run-gomf.bash index 05146cf..7016c50 100755 --- a/run-gomf.bash +++ b/run-gomf.bash @@ -142,6 +142,33 @@ set -e # application/x-msdos-program #) +# Enable logging +# +# When set to 1, all uploads are logged to $GOMF_ROOT/log/. +#LOG=0 + +# Enable logging of IP addresses +#LOG_IP=0 + +# Enable logging of hashed IP addresses +#LOG_IP_HASH=0 + +# Enable logging of User-Agent headers +#LOG_UA=0 + +# Enable logging of hashed User-Agent headers +#LOG_UA_HASH=0 + +# Enable logging of Referer headers +#LOG_REFERER=0 + +# Enable logging of hashed Referer headers +#LOG_REFERER_HASH=0 + +# Salt for hashed log entries +# +# Used to obfuscate entries when LOG_*_HASH option is enabled for privacy. +#LOG_HASH_SALT='put some unique string here' ############################################################################### @@ -171,6 +198,14 @@ IFS="$oldifs" [ "${GRILL:-0}" -ne 0 ] && flags+=(--grill) [ -n "$CSP" ] && [ "$CSP" = 0 ] && flags+=(--csp '') [ -n "$CSP" ] && ! [ "$CSP" = 0 ] && flags+=(--csp "$CSP") +[ "${LOG:-0}" -ne 0 ] && flags+=(--log) +[ "${LOG_IP:-0}" -ne 0 ] && flags+=(--log-ip) +[ "${LOG_IP_HASH:-0}" -ne 0 ] && flags+=(--log-ip-hash) +[ "${LOG_UA:-0}" -ne 0 ] && flags+=(--log-ua) +[ "${LOG_UA_HASH:-0}" -ne 0 ] && flags+=(--log-ua-hash) +[ "${LOG_REFERER:-0}" -ne 0 ] && flags+=(--log-referer) +[ "${LOG_REFERER_HASH:-0}" -ne 0 ] && flags+=(--log-referer-hash) +[ -n "$LOG_HASH_SALT" ] && flags+=(--log-hash-salt "$LOG_HASH_SALT") printf "%s" "${GOMF_BIN:-gomf}" [ "${#flags}" -gt 0 ] && printf " \"%s\"" "${flags[@]}" |