summarylogtreecommitdiffstats
path: root/arch-config.patch
blob: b2e9e962f16d98df3a5a16197f61204f10a49a0f (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
From 0de020184f52f79e757645e3ae1bfd0af4a5013b Mon Sep 17 00:00:00 2001
From: Giovanni Harting <539@idlegandalf.com>
Date: Tue, 3 Dec 2024 00:12:30 +0100
Subject: [PATCH] archlinux config changes

---
 configuration.go |  6 +++---
 hide.me@.service | 10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/configuration.go b/configuration.go
index 06f170a..bd80daa 100644
--- a/configuration.go
+++ b/configuration.go
@@ -41,8 +41,8 @@ func NewConfiguration() *Configuration {
 			Host:           		"",											// command line option "-n"
 			Port:					432,										// command line option "-p"
 			Domain:					"hide.me",									// Not configurable
-			CA:						"CA.pem",									// command line option "-ca"
-			AccessTokenPath:		"accessToken.txt",							// command line option "-t"
+			CA:						"/usr/share/hide.me/CA.pem",									// command line option "-ca"
+			AccessTokenPath:		"/etc/hide.me/accessToken.txt",							// command line option "-t"
 			Username:       		"",											// command line option "-u"
 			Password:				"",											// Only configurable through the config file
 			RestTimeout:	 		10 * time.Second,							// Only configurable through the config file
@@ -188,4 +188,4 @@ func ( c *Configuration ) Parse() ( err error ) {
 		if err != nil { return }
 	})
 	return
-}
\ No newline at end of file
+}
diff --git a/hide.me@.service b/hide.me@.service
index 299b9d8..1a445a8 100644
--- a/hide.me@.service
+++ b/hide.me@.service
@@ -6,10 +6,10 @@ DefaultDependencies=yes
 
 [Service]
 Type=notify
-ExecStart=/opt/hide.me/hide.me $OPTIONS connect %i
-WorkingDirectory=/opt/hide.me
-ReadWritePaths=/opt/hide.me /etc -/run/systemd/resolve
-EnvironmentFile=/opt/hide.me/config
+ExecStart=/usr/bin/hide.me $OPTIONS connect %i
+WorkingDirectory=/etc/hide.me
+ReadWritePaths=/etc/hide.me /etc/resolv.conf -/run/systemd/resolve
+EnvironmentFile=/etc/hide.me/config
 TimeoutStopSec=30
 Restart=always
 RestartSec=5s
@@ -31,4 +31,4 @@ Group=root
 LimitNOFILE=64
 
 [Install]
-WantedBy=multi-user.target
\ No newline at end of file
+WantedBy=multi-user.target
-- 
2.47.1