Skip to content

Commit fa2653b

Browse files
authored
Merge pull request #113 from LuCEresearchlab/fixes-development-docker
Fixes development docker
2 parents 2327183 + 3031474 commit fa2653b

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

frontend/.env.prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
TAGGING_SERVICE_URL=http://192.168.1.169:5000
1+
TAGGING_SERVICE_URL=http://localhost:5000

frontend/nginx/nginx.conf

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
server {
2+
include /etc/nginx/mime.types;
23

3-
listen 8080;
4+
listen 8080;
45

5-
location / {
6-
root /usr/share/nginx/html;
7-
index index.html index.htm;
8-
try_files $uri $uri/ /index.html;
9-
}
6+
location / {
7+
root /usr/share/nginx/html;
8+
index index.html index.htm;
9+
try_files $uri $uri/ /index.html = 404;
10+
}
1011

1112

12-
error_page 500 502 503 504 /50x.html;
13+
error_page 500 502 503 504 /50x.html;
1314

14-
location = /50x.html {
15-
root /usr/share/nginx/html;
16-
}
15+
location = /50x.html {
16+
root /usr/share/nginx/html;
17+
}
1718
}

frontend/webpack.dev.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const config: webpack.Configuration = {
4646
extensions: ["js", "jsx", "ts", "tsx"],
4747
}),
4848
new webpack.DefinePlugin({
49-
'process.env.TAGGING_SERVICE_URL': 'http://localhost:5000'
49+
'process.env.TAGGING_SERVICE_URL': JSON.stringify('http://localhost:5000')
5050
}),
5151
],
5252
devtool: "inline-source-map",

0 commit comments

Comments
 (0)