Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elleai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
E
ellehuis-group
backend
elleai
Commits
568523e4
Commit
568523e4
authored
Oct 23, 2024
by
杨翌文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 配置prd数据
parent
b8aa2db9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
UserMobileController.java
.../breeze/elleai/controller/front/UserMobileController.java
+4
-1
application.yml
src/main/resources/application.yml
+2
-1
No files found.
src/main/java/cn/breeze/elleai/controller/front/UserMobileController.java
View file @
568523e4
...
...
@@ -33,6 +33,9 @@ public class UserMobileController {
@Value
(
"${sso.user.mock:true}"
)
private
String
enableMock
;
@Value
(
"${sso.domain:}"
)
private
String
ssoBaseUrl
;
@Operation
(
summary
=
"单点登录"
)
@GetMapping
(
"/sso"
)
public
void
userSSOLogin
(
@RequestParam
(
"jwt"
)
String
token
,
HttpServletResponse
response
)
{
...
...
@@ -43,7 +46,7 @@ public class UserMobileController {
jwt
.
setPath
(
"/"
);
jwt
.
setHttpOnly
(
true
);
response
.
addCookie
(
jwt
);
response
.
sendRedirect
(
"/elle-coaching/1.0.0/index.html"
);
response
.
sendRedirect
(
ssoBaseUrl
+
"/elle-coaching/1.0.0/index.html"
);
}
catch
(
IOException
e
)
{
log
.
error
(
"单点登录异常{}"
,
ExceptionUtil
.
getMessage
(
e
));
}
...
...
src/main/resources/application.yml
View file @
568523e4
...
...
@@ -77,7 +77,7 @@ knife4j:
sso
:
user
:
mock
:
false
domain
:
https://elleai.e-tools.cn
rerank
:
api-base-url
:
http://10.0.8.210:9997
embedding
:
...
...
@@ -86,3 +86,4 @@ embedding:
milvus
:
host
:
10.0.8.210
port
:
19530
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment