~amolith

https://secluded.site

I'm a Linux sysadmin and I run open source services for free on NixNet.

~amolith/libremedia-discuss

Last active a day ago

~amolith/alderit

Last active 2 months ago

~amolith/public-inbox

Last active 11 months ago

~amolith/comms-evaluation

Last active 11 months ago

~amolith/ci

Last active 1 year, 10 days ago

~amolith/libremedia-federation

Last active 2 years ago

~amolith/libremedia-announce

Last active 2 years ago
View more

Recent activity

Re: [PATCH 07/12] Disallow incoming, allow relay/client connections 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Daniel Wilkins <tekk@linuxmail.org> writes:

> On Wed, Jul 20, 2022 at 11:09:56PM -0400, Amolith wrote:
>> Signed-off-by: Amolith <amolith@secluded.site>
>> +	// Allow incoming Sprig/relay connections
>> +	err = sh.Run("ufw", "allow", "in", "7117")
>> +	if err != nil {
>> +		return err
>> +	}
>> +
> Do we want to allow ssh in too?

You already allowed SSH in the original code you wrote.

Re: [PATCH 09/12] Add arbor target for setting the relay up 4 months ago

From Amolith to ~whereswaldon/arbor-dev

> Should this include hte service name somewhere in the sh.Run
> invocation? I don't run systemd so I can't test off-hand.

No, any time you modify or add systemd services, you have to run
daemon-reload to re-create dependency trees and regenerate things. After
modyfing or adding services, you can't start, stop, enable, or disable
anything until you run daemon-reload.

[PATCH 12/12] Add go.mod and go.sum 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Signed-off-by: Amolith <amolith@secluded.site>
---
 go.mod | 5 +++++
 go.sum | 4 ++++
 2 files changed, 9 insertions(+)
 create mode 100644 go.mod
 create mode 100644 go.sum

diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..7ab8e85
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,5 @@
[message trimmed]

[PATCH 11/12] Small changes to User target & normalising logs 4 months ago

From Amolith to ~whereswaldon/arbor-dev

For the useradd command, shell is not usually set by default or it
defaults to /bin/sh.

Signed-off-by: Amolith <amolith@secluded.site>
---
 setup.go | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/setup.go b/setup.go
index f67f6c1..b12e45c 100644
--- a/setup.go
+++ b/setup.go
@@ -34,13 +34,19 @@ func Deploy() error {
	return nil
[message trimmed]

[PATCH 10/12] Use new build target syntax 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Signed-off-by: Amolith <amolith@secluded.site>
---
 setup.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.go b/setup.go
index c8445cb..f67f6c1 100644
--- a/setup.go
+++ b/setup.go
@@ -1,4 +1,4 @@
//+build mage
//go:build mage

package main
[message trimmed]

[PATCH 09/12] Add arbor target for setting the relay up 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Signed-off-by: Amolith <amolith@secluded.site>
---
 setup.go | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/setup.go b/setup.go
index f99f401..c8445cb 100644
--- a/setup.go
+++ b/setup.go
@@ -24,7 +24,7 @@ var files embed.FS
// Handles initial configuration of the instance
func Deploy() error {
	// Run the various mage targets
	mg.Deps(Users, Sudoers, Apt, Firewall, Prometheus, Caddy)
[message trimmed]

[PATCH 08/12] Add copy function for writing from embedded fs 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Signed-off-by: Amolith <amolith@secluded.site>
---
 setup.go | 34 +++++++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 5 deletions(-)

diff --git a/setup.go b/setup.go
index ca0a3b4..f99f401 100644
--- a/setup.go
+++ b/setup.go
@@ -61,14 +61,13 @@ func Users() error {
}

func Sudoers() error {
	fmt.Println("Running target sudoers")
[message trimmed]

[PATCH 07/12] Disallow incoming, allow relay/client connections 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Signed-off-by: Amolith <amolith@secluded.site>
---
 setup.go | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/setup.go b/setup.go
index e9f4cbc..ca0a3b4 100644
--- a/setup.go
+++ b/setup.go
@@ -130,6 +130,11 @@ func Firewall() error {
		return err
	}

	err = sh.Run("ufw", "default", "deny", "incoming")
[message trimmed]

[PATCH 06/12] Add Prometheus and Caddy targets 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Signed-off-by: Amolith <amolith@secluded.site>
---
 setup.go | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/setup.go b/setup.go
index 1c1c602..e9f4cbc 100644
--- a/setup.go
+++ b/setup.go
@@ -23,8 +23,8 @@ var files embed.FS

// Handles initial configuration of the instance
func Deploy() error {
	mg.Deps(Users, Sudoers, Apt, Firewall)
[message trimmed]

[PATCH 05/12] Add Prometheus and Caddy to Apt target 4 months ago

From Amolith to ~whereswaldon/arbor-dev

Signed-off-by: Amolith <amolith@secluded.site>
---
 setup.go | 46 ++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 42 insertions(+), 4 deletions(-)

diff --git a/setup.go b/setup.go
index 5fcfb18..1c1c602 100644
--- a/setup.go
+++ b/setup.go
@@ -5,8 +5,11 @@ package main
import (
	"embed"
	"fmt"
	"io"
[message trimmed]