Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
web-et-numerique
Factory
Resin
Client
Commits
62cd04b6
Commit
62cd04b6
authored
4 years ago
by
Hugo SUBTIL
Browse files
Options
Downloads
Plain Diff
fix(build): fix translation build and nginx config
parents
f1938666
f5b5e319
Loading
Loading
3 merge requests
!68
Recette
,
!67
Dev
,
!43
Test
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
angular.json
+9
-2
9 additions, 2 deletions
angular.json
nginx/dev.conf
+6
-12
6 additions, 12 deletions
nginx/dev.conf
src/index.html
+1
-1
1 addition, 1 deletion
src/index.html
with
17 additions
and
16 deletions
Dockerfile
+
1
−
1
View file @
62cd04b6
...
...
@@ -20,7 +20,7 @@ COPY /src ./src
ARG
conf
# Building the Angular app /dist i18n
RUN
npm run build:
dev
RUN
npm run build:
prod
# Stage 1, based on Nginx, to have only the compiled app
FROM
nginx
...
...
This diff is collapsed.
Click to expand it.
angular.json
+
9
−
2
View file @
62cd04b6
...
...
@@ -14,9 +14,15 @@
"sourceRoot"
:
"src"
,
"prefix"
:
"app"
,
"i18n"
:
{
"sourceLocale"
:
"fr"
,
"sourceLocale"
:
{
"code"
:
"fr"
,
"baseHref"
:
""
},
"locales"
:
{
"en"
:
"src/locale/messages.en.xlf"
"en"
:
{
"baseHref"
:
"/en/"
,
"translation"
:
"src/locale/messages.en.xlf"
}
}
},
"architect"
:
{
...
...
@@ -54,6 +60,7 @@
"with"
:
"src/environments/environment.prod.ts"
}
],
"aot"
:
true
,
"optimization"
:
true
,
"outputHashing"
:
"all"
,
"sourceMap"
:
false
,
...
...
This diff is collapsed.
Click to expand it.
nginx/dev.conf
+
6
−
12
View file @
62cd04b6
upstream
api_node_js
{
server
service
-
ram
:
3000
;
}
server
{
listen
8080
default_server
;
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
;
root
/
usr
/
share
/
nginx
/
html
/;
location
/ {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files
$
uri
$
uri
/
$
uri
/
index
.
html
@
backend
;
try_files
$
uri
$
uri
/ /
index
.
html
;
}
location
@
backend
{
rewrite
/
api
/?(.*) /$
1
break
;
proxy_pass
http
://
api_node_js
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
location
/
api
{
rewrite
^/
api
/(.*) /$
1
break
;
proxy_pass
http
://
service
-
ram
:
3000
/
api
;
}
location
/
base
-
adresse
/
base
-
adresse
-
nationale
/
streets
{
...
...
@@ -38,6 +31,7 @@ server {
proxy_pass
https
://
download
.
data
.
grandlyon
.
com
/
wfs
/
grandlyon
;
}
# REALLY important for JavaScript modules (type="module") to work as expected!!!
location
~ \.
js
{
add_header
Content
-
Type
text
/
javascript
;
...
...
This diff is collapsed.
Click to expand it.
src/index.html
+
1
−
1
View file @
62cd04b6
<!DOCTYPE html>
<html
lang=
"
en
"
>
<html
lang=
"
fr
"
>
<head>
<meta
charset=
"utf-8"
/>
<title>
Réseau des Acteurs de la Médiation
</title>
...
...
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