aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/configuration.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-26 22:02:49 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-26 22:02:49 -0700
commit869161a2613a64bc5cf15f7841607f2721b8ef40 (patch)
tree81e540779d6970bf6e9909df88df4eaa63d98452 /weed/filer2/configuration.go
parent87b3b84471c7041c29474840616cd3f15705eabe (diff)
downloadseaweedfs-869161a2613a64bc5cf15f7841607f2721b8ef40.tar.xz
seaweedfs-869161a2613a64bc5cf15f7841607f2721b8ef40.zip
support both mysql and postgres
Diffstat (limited to 'weed/filer2/configuration.go')
-rw-r--r--weed/filer2/configuration.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/weed/filer2/configuration.go b/weed/filer2/configuration.go
index 14ca61745..91a0d6f46 100644
--- a/weed/filer2/configuration.go
+++ b/weed/filer2/configuration.go
@@ -35,11 +35,11 @@ dir = "." # directory to store level db files
# ) DEFAULT CHARSET=utf8;
#
enabled = true
-server = "localhost"
+hostname = "localhost"
port = 3306
username = "root"
password = ""
-database = "" # create or use an existing database, create the seaweedfs table.
+database = "" # create or use an existing database
connection_max_idle = 2
connection_max_open = 100
@@ -52,11 +52,12 @@ connection_max_open = 100
# PRIMARY KEY (dirhash, name)
# );
enabled = false
-server = "localhost"
+hostname = "localhost"
port = 5432
username = "postgres"
password = ""
-database = ""
+database = "" # create or use an existing database
+sslmode = "disable"
connection_max_idle = 100
connection_max_open = 100