Skip to content

Commit d99642d

Browse files
committed
feat(backend): server header
Signed-off-by: Me0wo <152751263+Sn0wo2@users.noreply.github.com>
1 parent 520dc1f commit d99642d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

data/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ logger:
66
dir: ./data/logs
77
database:
88
type: sqlite
9-
url: file:./data/prod.db?cache=shared&_journal_mode=WAL&_sync=NORMAL&_foreign_keys=on&_busy_timeout=5000
9+
url: file:./data/prod.db?cache=shared&_journal_mode=WAL&_sync=NORMAL&_foreign_keys=on&_busy_timeout=5000
10+
other:
11+
server: QuickNote-Backend

pkg/config/types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ type Config struct {
1717
Type string `yaml:"type"`
1818
URL string `yaml:"url"`
1919
} `yaml:"database"`
20+
Other struct {
21+
Server string `optional:"true" yaml:"server"`
22+
} `yaml:"other"`
2023
}

0 commit comments

Comments
 (0)