Setup nginx.conf and Dockerfile to build frontend application and run docker container

This commit is contained in:
Murtadha 2024-07-11 21:12:28 -04:00
parent 6b5d0528bb
commit 96f35a2bcd
2 changed files with 26 additions and 0 deletions

14
nginx.conf Normal file
View file

@ -0,0 +1,14 @@
server {
listen 5137;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(?:jpg|jpeg|gif|png|ico|svg|woff|woff2|ttf|css|js)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
}