mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2025-12-17 06:44:28 +01:00
hostrディレクトリの内容をトップレベルに移動
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -25,7 +25,5 @@ jobs:
|
||||
- uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
args: release --clean
|
||||
workdir: ./hostr
|
||||
version: latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1 +1,4 @@
|
||||
/nostr-rs-relay/data
|
||||
/nostr-rs-relay/data
|
||||
|
||||
main
|
||||
dist/
|
||||
|
||||
@@ -11,9 +11,9 @@ import (
|
||||
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/nbd-wtf/go-nostr/nip19"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/keystore"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/relays"
|
||||
"golang.org/x/exp/slices"
|
||||
"golang.org/x/net/html"
|
||||
)
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/tools"
|
||||
)
|
||||
|
||||
var availableContentTypes = []string{
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/nbd-wtf/go-nostr/nip19"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/tools"
|
||||
)
|
||||
|
||||
var allRelays []string
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/nbd-wtf/go-nostr/nip19"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/paths"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/paths"
|
||||
)
|
||||
|
||||
const PATH = ".nostr_account_secret"
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/paths"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/paths"
|
||||
)
|
||||
|
||||
const PATH = ".nostr_relays"
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/nbd-wtf/go-nostr/nip19"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/relays"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/tools"
|
||||
)
|
||||
|
||||
func Start(port string, mode string) {
|
||||
@@ -3,7 +3,7 @@ package tools
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||
)
|
||||
|
||||
func GetContentType(kind int) (string, error) {
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/studiokaiji/nostr-webhost/hostr
|
||||
module github.com/studiokaiji/nostr-webhost
|
||||
|
||||
go 1.21
|
||||
|
||||
5
hostr/.gitignore
vendored
5
hostr/.gitignore
vendored
@@ -1,5 +0,0 @@
|
||||
main
|
||||
dist/
|
||||
|
||||
.nostr_account_secret
|
||||
.nostr_relays
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/nbd-wtf/go-nostr/nip19"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/deploy"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
|
||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/server"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/deploy"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/keystore"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/relays"
|
||||
"github.com/studiokaiji/nostr-webhost/cmd/server"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user