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
|
- uses: goreleaser/goreleaser-action@v4
|
||||||
with:
|
with:
|
||||||
args: release --clean
|
args: release --clean
|
||||||
workdir: ./hostr
|
|
||||||
version: latest
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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"
|
||||||
"github.com/nbd-wtf/go-nostr/nip19"
|
"github.com/nbd-wtf/go-nostr/nip19"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore"
|
"github.com/studiokaiji/nostr-webhost/cmd/keystore"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
|
"github.com/studiokaiji/nostr-webhost/cmd/relays"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
"golang.org/x/net/html"
|
"golang.org/x/net/html"
|
||||||
)
|
)
|
||||||
@@ -14,7 +14,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/nbd-wtf/go-nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
|
"github.com/studiokaiji/nostr-webhost/cmd/tools"
|
||||||
)
|
)
|
||||||
|
|
||||||
var availableContentTypes = []string{
|
var availableContentTypes = []string{
|
||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/nbd-wtf/go-nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
"github.com/nbd-wtf/go-nostr/nip19"
|
"github.com/nbd-wtf/go-nostr/nip19"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
|
"github.com/studiokaiji/nostr-webhost/cmd/tools"
|
||||||
)
|
)
|
||||||
|
|
||||||
var allRelays []string
|
var allRelays []string
|
||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/nbd-wtf/go-nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
"github.com/nbd-wtf/go-nostr/nip19"
|
"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"
|
const PATH = ".nostr_account_secret"
|
||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/paths"
|
"github.com/studiokaiji/nostr-webhost/cmd/paths"
|
||||||
)
|
)
|
||||||
|
|
||||||
const PATH = ".nostr_relays"
|
const PATH = ".nostr_relays"
|
||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/nbd-wtf/go-nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
"github.com/nbd-wtf/go-nostr/nip19"
|
"github.com/nbd-wtf/go-nostr/nip19"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
|
"github.com/studiokaiji/nostr-webhost/cmd/relays"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
|
"github.com/studiokaiji/nostr-webhost/cmd/tools"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Start(port string, mode string) {
|
func Start(port string, mode string) {
|
||||||
@@ -3,7 +3,7 @@ package tools
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
|
"github.com/studiokaiji/nostr-webhost/cmd/consts"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetContentType(kind int) (string, error) {
|
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
|
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"
|
||||||
"github.com/nbd-wtf/go-nostr/nip19"
|
"github.com/nbd-wtf/go-nostr/nip19"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/deploy"
|
"github.com/studiokaiji/nostr-webhost/cmd/deploy"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore"
|
"github.com/studiokaiji/nostr-webhost/cmd/keystore"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
|
"github.com/studiokaiji/nostr-webhost/cmd/relays"
|
||||||
"github.com/studiokaiji/nostr-webhost/hostr/cmd/server"
|
"github.com/studiokaiji/nostr-webhost/cmd/server"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
Reference in New Issue
Block a user