attempting proxying
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
events {}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types; # Ensure this line is present
|
||||
default_type application/octet-stream;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
types {
|
||||
application/javascript js mjs;
|
||||
# Other types...
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://chore-app-backend:5000/;
|
||||
proxy_set_header Host $host;
|
||||
@@ -24,5 +32,6 @@ http {
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
} }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user