chore: configure remote mysql database
This commit is contained in:
1 parent
de2074a43b
commit
2d79e00c58
4 files changed
+12
-6
No files matched your search
@@ -0,0 +1,3 @@
|
||||
# 运行 Admin/Site 前设置数据库密码,例如 Windows PowerShell:
|
||||
# $env:SHOPLIX_DB_PASSWORD = "your-password"
|
||||
SHOPLIX_DB_PASSWORD=
|
||||
@@ -8,6 +8,9 @@
|
||||
# Local uploads and runtime files
|
||||
/uploads/
|
||||
*.log
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# IDE and OS files
|
||||
/.idea/
|
||||
|
||||
@@ -8,9 +8,9 @@ spring:
|
||||
max-file-size: 10MB
|
||||
max-request-size: 12MB
|
||||
datasource:
|
||||
url: jdbc:mysql://127.0.0.1:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: shoplix
|
||||
password: Shoplix_Local_2026!
|
||||
url: jdbc:mysql://mysql.steliro.com:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: root
|
||||
password: ${SHOPLIX_DB_PASSWORD}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
flyway:
|
||||
enabled: true
|
||||
|
||||
@@ -4,9 +4,9 @@ spring:
|
||||
application:
|
||||
name: shoplix-site
|
||||
datasource:
|
||||
url: jdbc:mysql://127.0.0.1:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: shoplix
|
||||
password: Shoplix_Local_2026!
|
||||
url: jdbc:mysql://mysql.steliro.com:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: root
|
||||
password: ${SHOPLIX_DB_PASSWORD}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
flyway:
|
||||
enabled: false
|
||||
|
||||
Reference in new issue
Block a user