chore: configure remote mysql database

This commit is contained in:
张锐 committed 2026-11-21 14:27:09 +08:00
1 parent de2074a43b
commit 2d79e00c58
4 files changed
+12 -6

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# 运行 Admin/Site 前设置数据库密码,例如 Windows PowerShell:
# $env:SHOPLIX_DB_PASSWORD = "your-password"
SHOPLIX_DB_PASSWORD=
+3
View File
@@ -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/
+3 -3
View File
@@ -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
+3 -3
View File
@@ -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