chore(config): Make Nacos namespace configurable

- Replace hardcoded public namespace with NACOS_NAMESPACE
- Document nacos init container troubleshooting for 1Panel deploy
This commit is contained in:
Toys-A
2026-08-07 03:04:33 +08:00
parent 16e9d7f9bd
commit 05988c4325
21 changed files with 217 additions and 41 deletions
@@ -8,7 +8,7 @@ spring:
nacos:
discovery:
server-addr: ${NACOS_HOST:nacos}:${NACOS_PORT:8848}
namespace: public
namespace: ${NACOS_NAMESPACE:}
group: DEFAULT_GROUP
sentinel:
transport:
@@ -5,7 +5,7 @@ spring:
nacos:
discovery:
server-addr: ${NACOS_HOST:nacos}:${NACOS_PORT:8848}
namespace: public
namespace: ${NACOS_NAMESPACE:}
group: DEFAULT_GROUP
username: ${NACOS_USERNAME:nacos}
password: ${NACOS_PASSWORD:nacos}
@@ -16,8 +16,8 @@ spring:
register-enabled: true
config:
server-addr: ${NACOS_HOST:nacos}:${NACOS_PORT:8848}
namespace: public
namespace: ${NACOS_NAMESPACE:}
group: DEFAULT_GROUP
username: ${NACOS_USERNAME:nacos}
password: ${NACOS_PASSWORD:nacos}
file-extension: yaml
file-extension: yaml
@@ -48,16 +48,16 @@
video_id as videoId,
SUM(
CASE
<foreach collection="weights.entrySet()" item="entry">
WHEN behavior_type = #{entry.key} THEN behavior_weight * #{entry.value}
<foreach collection="weights" index="behaviorType" item="weight">
WHEN behavior_type = #{behaviorType} THEN behavior_weight * #{weight}
</foreach>
ELSE behavior_weight
END
) as score
FROM recommend_user_behavior
WHERE
WHERE 1 = 1
<if test="startTime != null">
create_time >= #{startTime}
AND create_time >= #{startTime}
</if>
<if test="behaviorTypes != null and behaviorTypes.size > 0">
AND behavior_type IN
@@ -69,4 +69,4 @@
ORDER BY score DESC
LIMIT #{limit}
</select>
</mapper>
</mapper>