feat: Containerize frontend and backend services with Docker and Docker Compose, enabling environment-based API configuration.
This commit is contained in:
14
k-notes-frontend/nginx.conf
Normal file
14
k-notes-frontend/nginx.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Optional: Proxy API requests if using same domain (not needed for this specific setup but good to have)
|
||||
# location /api {
|
||||
# proxy_pass http://backend:3000;
|
||||
# }
|
||||
}
|
||||
Reference in New Issue
Block a user