Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
402
Merge Requests
63
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
4d35c34d
Commit
4d35c34d
authored
2 hours ago
by
Emiliano Balbuena
Browse files
Options
Download
(chore): Local non-SSR server with proxy
parent
652635d2
goal/local-infra
1 merge request
!766
WIP: Local infrastructure provisioner (front)
Pipeline
#116532393
failed with stages
in 29 minutes and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
package.json
View file @
4d35c34d
...
...
@@ -12,6 +12,8 @@
"serve-dev"
:
"echo 'Deprecated, please use serve:ssr'; npm run serve:ssr --"
,
"prebuild:dev"
:
"gulp build.sass --deploy-url=http://localhost:8080/"
,
"build:dev"
:
"ng build --output-path=dist/en --deploy-url=http://localhost:8080/ --watch=true --poll=800 --aot"
,
"preserve:dev"
:
"gulp build.sass --deploy-url=http://localhost:4200/"
,
"serve:dev"
:
"ng serve --deploy-url=http://localhost:4200/ --watch=true --poll=800 --aot --progress --proxy-config proxy.conf.js --host=0.0.0.0 --disableHostCheck=true"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
"e2e"
:
"cypress run --debug"
,
...
...
This diff is collapsed.
proxy.conf.js
0 → 100644
View file @
4d35c34d
const
engineSecure
=
Boolean
(
parseInt
(
process
.
env
[
'
ENGINE_SECURE
'
])
||
0
);
const
engineHost
=
process
.
env
[
'
ENGINE_HOST
'
]
||
'
localhost
'
;
const
enginePort
=
process
.
env
[
'
ENGINE_PORT
'
]
||
(
engineSecure
?
443
:
80
);
const
PROXY_CONFIG
=
[
{
context
:
[
'
/api
'
,
'
/fs
'
,
'
/icon
'
,
'
/carousel
'
,
],
target
:
{
protocol
:
engineSecure
?
'
https:
'
:
'
http:
'
,
host
:
engineHost
,
port
:
enginePort
,
},
secure
:
false
,
changeOrigin
:
true
,
withCredentials
:
true
,
logLevel
:
process
.
env
[
'
PROXY_LOG_LEVEL
'
]
||
'
info
'
,
}
];
module
.
exports
=
PROXY_CONFIG
;
This diff is collapsed.
Please
register
or
sign in
to comment