about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--nix/default.nix2
-rw-r--r--server.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/nix/default.nix b/nix/default.nix
index d555bbd..063d946 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -17,7 +17,7 @@ let
         Cmd = [ "${server}/bin/website" ];
         Env = [
           "PRODUCTION=true"
-          "LISTEN_ADDRESS="
+          "LISTEN_ADDRESS=::"
           "PORT=${builtins.toString PORT}"
           "ROOT=public"
         ];
diff --git a/server.go b/server.go
index 945ed38..9d04dc1 100644
--- a/server.go
+++ b/server.go
@@ -80,6 +80,7 @@ func main() {
 		DisableDefaultDate:       true,
 		DisableHeaderNormalizing: true,
 		DisableStartupMessage:    true,
+		Network:                  fiber.NetworkTCP,
 	})
 	prometheus := fiberprometheus.New("homestead")
 	prometheus.RegisterAt(metricServer, "/metrics")
@@ -152,6 +153,7 @@ func main() {
 	toplevel := fiber.New(fiber.Config{
 		DisableStartupMessage: runtimeConfig.Production,
 		ServerHeader:          fmt.Sprintf("website (%s)", Commit),
+		Network:               fiber.NetworkTCP,
 	})
 	toplevel.Get("/health", func(c *fiber.Ctx) error {
 		return c.SendStatus(fiber.StatusOK)