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:
@@ -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