Skip to content

Commit 319c8cc

Browse files
authored
adding nginx conf for react containerized app
1 parent 87361c4 commit 319c8cc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

nginx/nginx.conf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
server {
2+
3+
listen 3000;
4+
add_header Content-Security-Policy "frame-ancestors 'self' *"; #It is needed to use iframes...
5+
6+
location / {
7+
root /usr/share/nginx/html;
8+
index index.html index.htm;
9+
try_files $uri $uri/ /index.html;
10+
}
11+
12+
error_page 500 502 503 504 /50x.html;
13+
14+
location = /50x.html {
15+
root /usr/share/nginx/html;
16+
}
17+
18+
}

0 commit comments

Comments
 (0)