summarylogtreecommitdiffstats
path: root/fix-relative-file-paths.patch
blob: 24102663e1742e73e6ea341840fb1478aa5e22d2 (plain)
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
62
diff --git a/cmd/zifd/main.go b/cmd/zifd/main.go
index 24cd1fa..e55f332 100644
--- a/cmd/zifd/main.go
+++ b/cmd/zifd/main.go
@@ -34,6 +34,7 @@ func SetupLocalPeer(addr string) *zif.LocalPeer {
 }
 
 func main() {
+	//os.Chdir("/var/lib/zif")
 
 	log.SetLevel(log.DebugLevel)
 	formatter := new(log.TextFormatter)
diff --git a/config/zifd.toml b/config/zifd.toml
index a9346c4..b5c2059 100644
--- a/config/zifd.toml
+++ b/config/zifd.toml
@@ -2,21 +2,21 @@
 zif = "0.0.0.0:5050"
 
 # http is an API that allows interaction with the daemon
-http = "127.0.0.1:8080" 
+http = "127.0.0.1:8080"
 
 [database]
 # Defaults to relative to the binary
-path = "./data/posts.db"
+path = "/var/lib/zif/data/posts.db"
 
 [tor]
-enabled = true
+enabled = false
 control = 10051
 socks = 10050
 # assumes you're using the tor config provided, running in a subfolder
-cookiePath = "./tor/"
+cookiePath = "/etc/zif/tor/"
 
 [socks]
-enabled = true
+enabled = false
 port = 10050
 
 [net]
diff --git a/tor/torrc b/tor/torrc
index bced57c..f960d4d 100755
--- a/tor/torrc
+++ b/tor/torrc
@@ -1,11 +1,11 @@
 Log notice stderr
 
 ## The directory for keeping all the keys/etc. By default, we store
-## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
-DataDirectory ./
+## things in /etc/zif/tor .
+DataDirectory /etc/zif/tor/
 
 ControlPort 10051
 SocksPort 10050
 CookieAuthentication 1
 CookieAuthFileGroupReadable 1
-CookieAuthFile ./cookie
+CookieAuthFile /etc/zif/tor/cookie