|
@@ -4,7 +4,7 @@ listen = "0.0.0.0:8080"
|
|
|
|
|
|
[sequence_db]
|
|
|
# Mysql sequence generator DSN
|
|
|
-dsn = "sequence:sequence@tcp(127.0.0.1:3306)/sequence"
|
|
|
+dsn = "root:rong360.com@tcp(10.12.20.143:3550)/cnlink"
|
|
|
|
|
|
# Mysql connection pool max idle connection
|
|
|
max_idle_conns = 4
|
|
@@ -14,10 +14,10 @@ max_open_conns = 4
|
|
|
|
|
|
[short_db]
|
|
|
# Mysql short service read db DSN
|
|
|
-read_dsn = "shortme_w:shortme_w@tcp(127.0.0.1:3306)/shortme"
|
|
|
+read_dsn = "root:rong360.com@tcp(10.12.20.143:3550)/cnlink"
|
|
|
|
|
|
# Mysql short service write db DSN
|
|
|
-write_dsn = "shortme_r:shortme_r@tcp(127.0.0.1:3306)/shortme"
|
|
|
+write_dsn = "root:rong360.com@tcp(10.12.20.143:3550)/cnlink"
|
|
|
|
|
|
# Mysql connection pool max idle connection
|
|
|
max_idle_conns = 8
|
|
@@ -30,11 +30,11 @@ max_open_conns = 8
|
|
|
black_short_urls = ["version","health","short","expand","css","js","fuck","stupid"]
|
|
|
|
|
|
# Base string used to generate short url
|
|
|
-# base_string = "Ds3K9ZNvWmHcakr1oPnxh4qpMEzAye8wX5IdJ2LFujUgtC07lOTb6GYBQViSfR"
|
|
|
-base_string = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
|
+base_string = "FnvUcfRyxsKuEMraDOPSe9Y8BZh0Tmk1bV65ld42XgGzNC7wp3JWLqAtiQjHoI"
|
|
|
+# base_string = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
|
|
|
|
# Short url service domain name. This is used to filter short url loop.
|
|
|
domain_name = "127.0.0.1:8080"
|
|
|
|
|
|
# Short url service schema: http or https.
|
|
|
-schema = "http"
|
|
|
+schema = "https"
|