aboutsummaryrefslogtreecommitdiff
path: root/internal/conf
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-04-10 22:13:42 +0800
committerGitHub <noreply@github.com>2020-04-10 22:13:42 +0800
commit9a5b227f3ee2b2a3854d3aec022cc9a0cf0868b3 (patch)
tree7600826f4affce28e95588de921d801f0414f046 /internal/conf
parent3e055e329cf93eb5de77562d7795240808d31c08 (diff)
lfsutil: add `Storager` interface and local storage (#6083)
* Add Storager interface * Add tests * Add back note * Add tests for basic protocol routes * Fix lint errors
Diffstat (limited to 'internal/conf')
-rw-r--r--internal/conf/static.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/internal/conf/static.go b/internal/conf/static.go
index 35d1a8f4..ae153ab3 100644
--- a/internal/conf/static.go
+++ b/internal/conf/static.go
@@ -193,11 +193,6 @@ var (
AccessControlAllowOrigin string
}
- // LFS settings
- LFS struct {
- ObjectsPath string
- }
-
// Attachment settings
Attachment struct {
Enabled bool
@@ -417,6 +412,14 @@ type DatabaseOpts struct {
// Database settings
var Database DatabaseOpts
+type LFSOpts struct {
+ Storage string
+ ObjectsPath string
+}
+
+// LFS settings
+var LFS LFSOpts
+
type i18nConf struct {
Langs []string `delim:","`
Names []string `delim:","`