feat(config): 更新配置以支持HTTPS域名访问
- 将所有环境的前端URL从localhost和IP地址更新为https://shopd.mtkj2025.com - 配置PayPal webhook使用HTTPS域名以满足PayPal安全要求 - 统一后端服务端口从18082调整为8082 - 更新Java代码中的默认URL配置和启动日志信息 - 创建域名配置、Nginx SSL配置和公网访问检查清单文档 - 为商品链接生成和API访问配置HTTPS协议支持
This commit is contained in:
@@ -63,7 +63,7 @@ spring:
|
||||
|
||||
# 服务器配置(所有环境通用)
|
||||
server:
|
||||
port: 18082
|
||||
port: 8082
|
||||
servlet:
|
||||
context-path: /
|
||||
# 文件上传配置
|
||||
@@ -78,8 +78,9 @@ server:
|
||||
# 应用配置(所有环境通用)
|
||||
app:
|
||||
# 前端访问地址(用于生成商品详情页URL等)
|
||||
# 注意:已配置SSL证书,使用HTTPS和域名
|
||||
frontend:
|
||||
url: http://175.178.252.59:3000
|
||||
url: https://shopd.mtkj2025.com
|
||||
|
||||
# 阿里云OSS相关配置(所有环境通用)
|
||||
aliyun:
|
||||
@@ -111,9 +112,10 @@ paypal:
|
||||
mode: sandbox
|
||||
# 是否启用PayPal支付
|
||||
enabled: true
|
||||
# Webhook URL(服务器公网地址)
|
||||
# 注意:需要在PayPal控制台配置此URL
|
||||
webhook-url: http://175.178.252.59:18082/api/paypal/webhook
|
||||
# Webhook URL(服务器公网地址,必须使用HTTPS,端口443)
|
||||
# 注意:PayPal只接受HTTPS(端口443)的Webhook URL
|
||||
# 已配置SSL证书,使用域名访问
|
||||
webhook-url: https://shopd.mtkj2025.com/api/paypal/webhook
|
||||
# Webhook ID(从PayPal控制台获取,用于验证Webhook签名)
|
||||
webhook-id: 0SX6117212808615P
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ spring:
|
||||
|
||||
# 服务器配置
|
||||
server:
|
||||
port: ${server.port:18082}
|
||||
port: ${server.port:8082}
|
||||
servlet:
|
||||
context-path: /
|
||||
multipart:
|
||||
@@ -72,9 +72,9 @@ server:
|
||||
|
||||
# 应用配置
|
||||
app:
|
||||
# 前端访问地址
|
||||
# 前端访问地址(已配置SSL证书,使用HTTPS和域名)
|
||||
frontend:
|
||||
url: ${app.frontend.url:http://175.178.252.59:3000}
|
||||
url: ${app.frontend.url:https://shopd.mtkj2025.com}
|
||||
|
||||
# PingPong支付配置(生产环境)
|
||||
pingpong:
|
||||
@@ -99,8 +99,8 @@ paypal:
|
||||
mode: sandbox
|
||||
# 是否启用PayPal支付
|
||||
enabled: true
|
||||
# Webhook URL(部署时请修改为服务器的公网地址)
|
||||
webhook-url: ${paypal.webhook-url:https://your-domain.com/api/paypal/webhook}
|
||||
# Webhook URL(已配置SSL证书,使用HTTPS和域名)
|
||||
webhook-url: ${paypal.webhook-url:https://shopd.mtkj2025.com/api/paypal/webhook}
|
||||
# Webhook ID(从PayPal控制台获取)
|
||||
webhook-id: ${paypal.webhook-id:}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user