Skip to content

Commit

Permalink
Merge pull request #8 from opensourceways/zjw_dev_new_1
Browse files Browse the repository at this point in the history
sync: 消息中心二期功能
  • Loading branch information
gzbang authored Oct 10, 2024
2 parents af36316 + dc9a2e7 commit 5074376
Show file tree
Hide file tree
Showing 112 changed files with 8,936 additions and 2,599 deletions.
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_LOGIN_URL = https://openeuler-usercenter.test.osinfra.cn
VITE_XSRF_COOKIE_NAME = '_U_T_'
VITE_XSRF_HEADER_NAME = 'Token'
4 changes: 4 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VITE_LOGIN_URL = https://id.openeuler.org
VITE_XSRF_COOKIE_NAME = '_U_T_'
VITE_XSRF_HEADER_NAME = 'Token'
VITE_COOKIE_DOMAIN = .openeuler.org
20 changes: 19 additions & 1 deletion deploy/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,25 @@ http {
proxy_cache off;
proxy_buffer_size 8k;
proxy_read_timeout 900;
proxy_pass http://manager-service.message-center.svc.cluster.local:8082/message_center;
proxy_pass http://manager-service.message-center.svc.cluster.local:8082/message_center/;
}

location ^~ /api-id/ {
proxy_set_header X-Forwarded-For $http_x_real_ip;
add_header X-XSS-Protection "1; mode=block";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
add_header Content-Security-Policy "script-src 'self'; object-src 'none'; frame-src 'none'";
add_header Cache-Control "no-cache,no-store,must-revalidate";
add_header Pragma no-cache;
add_header Expires 0;

proxy_pass https://omapi.osinfra.cn/;
}

location ^~ /api-dsapi/ {
proxy_pass https://dsapi.osinfra.cn/;
}

error_page 401 402 403 405 406 407 413 414 /error.html;
Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>message-manager</title>
<title>消息中心</title>
</head>
<body>
<div id="app"></div>
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"@vueuse/core": "9.12.0",
"axios": "1.6.7",
"clipboard": "2.0.11",
"dayjs": "^1.11.11",
"element-plus": "^2.7.6",
"js-cookie": "^3.0.5",
"pinia": "2.1.6",
"vue": "3.3.4",
"vue-dompurify-html": "3.1.2",
Expand All @@ -49,7 +52,7 @@
"prettier": "^3.2.5",
"sass": "^1.62.0",
"typescript": "~5.2.0",
"unplugin-auto-import": "^0.17.2",
"unplugin-auto-import": "^0.17.6",
"unplugin-icons": "^0.17.1",
"unplugin-vue-components": "^0.26.0",
"vite": "^4.1.5",
Expand Down
Loading

0 comments on commit 5074376

Please sign in to comment.