Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp_estate_server
Project
Project
Details
Activity
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
mp_estate_backstage
mp_estate_server
Commits
996bb819
Commit
996bb819
authored
Sep 15, 2020
by
成旭东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
123767d6
Pipeline
#28210
passed with stage
in 4 minutes 21 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
oss.ts
app/controller/oss.ts
+2
-2
config.default.ts
config/config.default.ts
+7
-0
No files found.
app/controller/oss.ts
View file @
996bb819
...
...
@@ -23,7 +23,7 @@ export default class OssController extends Controller {
],
});
const
policy
=
new
Buffer
(
json
).
toString
(
'base64'
);
const
signature
=
ctx
.
oss
.
get
(
'
media
'
).
signature
(
policy
);
ctx
.
success
({
res
:
{
policy
,
signature
,
OSSAccessKeyId
:
'LTAI
RRW7SbrqKUIJ
'
}
});
const
signature
=
ctx
.
oss
.
get
(
'
wafang
'
).
signature
(
policy
);
ctx
.
success
({
res
:
{
policy
,
signature
,
OSSAccessKeyId
:
'LTAI
4G4MVksbyK6C1RzXv9L5
'
}
});
}
}
config/config.default.ts
View file @
996bb819
...
...
@@ -92,6 +92,13 @@ export default (appInfo: { name: string; }) => {
endpoint
:
'oss-cn-hangzhou.aliyuncs.com'
,
timeout
:
'60s'
,
},
wafang
:
{
accessKeyId
:
'LTAI4G4MVksbyK6C1RzXv9L5'
,
accessKeySecret
:
'Yaix3Wjv7AwUTnESdXVdG6eq7rmF0M'
,
bucket
:
'wafang'
,
endpoint
:
'oss-cn-hangzhou.aliyuncs.com'
,
timeout
:
'60s'
,
},
},
};
...
...
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