Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
883807ab
authored
Feb 24, 2021
by
MichaelJier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
private
1. 自定义私有化server端口
parent
45e84b94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
config/global.js
+1
-0
config/huawei.private.js
+1
-0
nuxt.config.js
+2
-2
No files found.
config/global.js
View file @
883807ab
...
@@ -41,6 +41,7 @@ module.exports = {
...
@@ -41,6 +41,7 @@ module.exports = {
DEF_S_AODIANYUN
:
'//cdn.aodianyun.com'
,
DEF_S_AODIANYUN
:
'//cdn.aodianyun.com'
,
DEF_SITE
:
'//web.guangdianyun.tv'
,
DEF_SITE
:
'//web.guangdianyun.tv'
,
GTAG_ID
:
'G-H08BKPKZPJ'
,
GTAG_ID
:
'G-H08BKPKZPJ'
,
SERVE_PORT
:
3000
,
HTTPS_PORT
:
''
,
HTTPS_PORT
:
''
,
HTTP_PORT
:
''
,
HTTP_PORT
:
''
,
X_CA_STAGE
:
''
,
X_CA_STAGE
:
''
,
...
...
config/huawei.private.js
View file @
883807ab
...
@@ -8,6 +8,7 @@ module.exports = {
...
@@ -8,6 +8,7 @@ module.exports = {
X_CA_STAGE
:
''
,
X_CA_STAGE
:
''
,
private
:
true
,
private
:
true
,
sentryOptions
:
{},
sentryOptions
:
{},
SERVE_PORT
:
33000
,
uploaderName
:
'huaweicloud'
,
uploaderName
:
'huaweicloud'
,
uploaderOptions
:
{
uploaderOptions
:
{
accessKeyId
:
'GOQ82NEHQYDQCHMW5GZT'
,
accessKeyId
:
'GOQ82NEHQYDQCHMW5GZT'
,
...
...
nuxt.config.js
View file @
883807ab
...
@@ -3,7 +3,7 @@ const BASE_URL = '/live/';
...
@@ -3,7 +3,7 @@ const BASE_URL = '/live/';
const
globalEnv
=
require
(
'./config/global.js'
);
const
globalEnv
=
require
(
'./config/global.js'
);
const
modeEnv
=
process
.
env
.
mode
?
require
(
`./config/
${
process
.
env
.
mode
}
.js`
)
:
{};
const
modeEnv
=
process
.
env
.
mode
?
require
(
`./config/
${
process
.
env
.
mode
}
.js`
)
:
{};
const
env
=
{
...
globalEnv
,
...
modeEnv
};
const
env
=
{
...
globalEnv
,
...
modeEnv
};
const
{
DEF_S_AODIANYUN
,
DEF_OSS
,
X_CA_STAGE
,
sentryOptions
}
=
env
;
const
{
DEF_S_AODIANYUN
,
DEF_OSS
,
X_CA_STAGE
,
sentryOptions
,
SERVE_PORT
}
=
env
;
const
BUILD_DIST
=
X_CA_STAGE
||
'PROD'
;
const
BUILD_DIST
=
X_CA_STAGE
||
'PROD'
;
const
flag
=
process
.
env
.
NODE_ENV
===
'production'
&&
!
env
.
private
const
flag
=
process
.
env
.
NODE_ENV
===
'production'
&&
!
env
.
private
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
config
:
{}
config
:
{}
},
},
server
:
{
server
:
{
port
:
3000
,
// default: 3000
port
:
SERVE_PORT
||
3000
,
// default: 3000
host
:
'0.0.0.0'
// default: localhost
host
:
'0.0.0.0'
// default: localhost
},
},
/*
/*
...
...
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