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
|
# Local uploads and runtime files
|
||||||
/uploads/
|
/uploads/
|
||||||
*.log
|
*.log
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
|
||||||
# IDE and OS files
|
# IDE and OS files
|
||||||
/.idea/
|
/.idea/
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ spring:
|
|||||||
max-file-size: 10MB
|
max-file-size: 10MB
|
||||||
max-request-size: 12MB
|
max-request-size: 12MB
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://127.0.0.1:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
url: jdbc:mysql://mysql.steliro.com:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
||||||
username: shoplix
|
username: root
|
||||||
password: Shoplix_Local_2026!
|
password: ${SHOPLIX_DB_PASSWORD}
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
flyway:
|
flyway:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: shoplix-site
|
name: shoplix-site
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://127.0.0.1:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
url: jdbc:mysql://mysql.steliro.com:3306/shoplix?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false
|
||||||
username: shoplix
|
username: root
|
||||||
password: Shoplix_Local_2026!
|
password: ${SHOPLIX_DB_PASSWORD}
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
flyway:
|
flyway:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
Reference in new issue
Block a user