aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-09 13:31:58 +0700
committerShulhan <ms@kilabit.info>2026-02-09 13:31:58 +0700
commit4ab4e659ede69431ecf9f673bbf943386423de9b (patch)
treecddbd2b969347d38c0948916a457bbd284b1cd62 /internal
parent92f24cfe94e74c5cd6c58330a8eef1ca0ff5aced (diff)
downloadawwan-4ab4e659ede69431ecf9f673bbf943386423de9b.tar.xz
go.mod: update all dependencies
This update affect the [ciigo.Serve] call in internal/cmd/www-awwan.
Diffstat (limited to 'internal')
-rw-r--r--internal/cmd/www-awwan/main.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/internal/cmd/www-awwan/main.go b/internal/cmd/www-awwan/main.go
index 87b6d6f..091cab8 100644
--- a/internal/cmd/www-awwan/main.go
+++ b/internal/cmd/www-awwan/main.go
@@ -1,5 +1,5 @@
-// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: GPL-3.0-or-later
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
// Program www-awwan serve the awwan.org website.
//
@@ -15,6 +15,7 @@ import (
"syscall"
"git.sr.ht/~shulhan/ciigo"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/http"
"git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
"git.sr.ht/~shulhan/pakakeh.go/lib/systemd"
@@ -69,10 +70,11 @@ func main() {
log.Printf(`--- Starting %s at http://%s with dev=%v`, binName, *flagAddress, *flagDev)
var optsServe = ciigo.ServeOptions{
- Mfs: MemfsWww,
- Address: *flagAddress,
- ConvertOptions: internal.DocConvertOpts,
- IsDevelopment: *flagDev,
+ ServerOptions: http.ServerOptions{
+ Memfs: MemfsWww,
+ Address: *flagAddress,
+ },
+ IsDevelopment: *flagDev,
}
listeners, err := systemd.Listeners(true)
@@ -91,7 +93,7 @@ func main() {
}
}
- err = ciigo.Serve(optsServe)
+ err = ciigo.Serve(optsServe, internal.DocConvertOpts)
if err != nil {
log.Fatal(err)
}