mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-08 16:11:05 +08:00
Compare commits
5 Commits
feature/do
...
codex/add-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0033374481 | ||
|
|
8f36422609 | ||
|
|
b98871bed9 | ||
|
|
2cb8c12f65 | ||
|
|
87a256ba0c |
@@ -4,7 +4,7 @@ server.port=${SERVER_PORT:8080}
|
||||
# for mysql
|
||||
logging.level.root=${LOG_LEVEL:INFO}
|
||||
logging.level.com.openisle.service.CosImageUploader=DEBUG
|
||||
spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}
|
||||
spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?useUnicode=yes&characterEncoding=UTF-8&useInformationSchema=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
|
||||
spring.datasource.username=${MYSQL_USER:root}
|
||||
spring.datasource.password=${MYSQL_PASSWORD:password}
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
|
||||
@@ -4,7 +4,7 @@ set -euo pipefail
|
||||
# 可用法:
|
||||
# ./deploy-staging.sh
|
||||
# ./deploy-staging.sh feature/docker
|
||||
deploy_branch="${1:-feature/docker}"
|
||||
deploy_branch="${1:-main}"
|
||||
|
||||
repo_dir="/opt/openisle/OpenIsle-staging"
|
||||
compose_file="${repo_dir}/docker/docker-compose.yaml"
|
||||
|
||||
@@ -157,6 +157,7 @@ const SANITIZE_CFG = {
|
||||
'th',
|
||||
'video',
|
||||
'source',
|
||||
'iframe',
|
||||
],
|
||||
// 允许的属性
|
||||
allowedAttributes: {
|
||||
@@ -180,6 +181,16 @@ const SANITIZE_CFG = {
|
||||
'crossorigin',
|
||||
],
|
||||
source: ['src', 'type'],
|
||||
iframe: [
|
||||
'src',
|
||||
'title',
|
||||
'width',
|
||||
'height',
|
||||
'allow',
|
||||
'allowfullscreen',
|
||||
'frameborder',
|
||||
'referrerpolicy',
|
||||
],
|
||||
},
|
||||
// 允许的类名(保留你的样式钩子)
|
||||
allowedClasses: {
|
||||
|
||||
Reference in New Issue
Block a user