/
30_whonix.conf
executable file
·61 lines (57 loc) · 2.01 KB
/
30_whonix.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env sh
## Configuration file for OnionJuggler
##
## DO NOT EDIT THIS FILE!!
##
## This file defines the default service selection as shipped in a
## release. Upgrades of OnionJuggler will modify this file.
##
## To select the service options you desire, please override these
## options in the file /etc/onionjuggler/conf.d/*.conf
##
## DO NOT EDIT THIS FILE!!
##
## Lines that begin with "## " try to explain what's going on. Lines
## that begin with just "#" are disabled commands: you can enable them
## by removing the "#" symbol.
##
## If the variable is empty (var=""), will use the default option.
## Double quote to prevent globbing and word splitting.
## variable="value"
##
# shellcheck disable=SC2034
if test -f /usr/share/anon-gw-base-files/gateway; then
## Gateway
########## System ##########
operating_system="anon-gateway"
## web: should be on the workstation
onionjuggler_plugin="auth-server,auth-client"
openssl_cmd="openssl"
dialog_box="whiptail"
########## tor daemon ##########
daemon_control="systemctl"
tor_daemon="tor@default"
tor_user="debian-tor"
tor_conf_user_group="root:root"
## included tor configuration folder, specifically files matching '*.conf'
tor_conf_dir="/usr/local/etc/torrc.d"
## manage its own unique torrc to avoid user manual modification
tor_conf="${tor_conf_dir}/40_onionjuggler.conf"
## just to set defaults conf, they won't be modified
tor_main_torrc_conf="/etc/tor/torrc"
tor_defaults_torrc_conf="/usr/share/tor/tor-service-defaults-torrc"
tor_data_dir="/var/lib/tor"
## pre-confiured ClientOnionAuthDir
tor_data_dir_auth="${tor_data_dir}/authdir"
elif test -f /usr/share/anon-ws-base-files/workstation; then
## Workstation
########## System ##########
operating_system="anon-workstation"
## web is the only usable plugin for Workstations
onionjuggler_plugin="web"
webserver="nginx"
dialog_box="whiptail"
elif ! test -f /usr/share/anon-dist/marker; then
error_msg "wrong configuration chosen, this is not an anon dist"
exit 1
fi