Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
angular-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse Graphene
angular-frontend
Commits
1eb58cd9
Commit
1eb58cd9
authored
2 months ago
by
Kawtar Laariche
Browse files
Options
Downloads
Patches
Plain Diff
feat: support hosting Angular frontend under /v2 path
parent
0cee4c19
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
nginx.conf
+5
-6
5 additions, 6 deletions
nginx.conf
with
6 additions
and
7 deletions
Dockerfile
+
1
−
1
View file @
1eb58cd9
...
@@ -14,7 +14,7 @@ RUN npm install
...
@@ -14,7 +14,7 @@ RUN npm install
COPY
. .
COPY
. .
# Build the Angular app
# Build the Angular app
RUN
np
m run
ng build
--configuration
=
prod
RUN
np
x
ng build
--base-href
=
/v2/
--configuration
=
prod
#RUN npm run ng -- build --configuration=dev02
#RUN npm run ng -- build --configuration=dev02
...
...
This diff is collapsed.
Click to expand it.
nginx.conf
+
5
−
6
View file @
1eb58cd9
server
{
server
{
listen
80
;
listen
80
;
server_name
localhost
;
server_name
localhost
;
root
/usr/share/nginx/html
;
root
/usr/share/nginx/html
;
index
index.html
;
location
/
{
location
/v2/
{
# Angular routing fallback
alias
/usr/share/nginx/html/
;
try_files
$uri
/index.html
;
index
index.html
;
try_files
$uri
$uri
/
/index.html
;
}
}
error_page
404
/index.html
;
error_page
404
/v2
/index.html
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment