diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-29 16:07:04 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-29 16:07:04 +0100 |
| commit | b7e09de3cb8709e5456b996984b5de8161202ef6 (patch) | |
| tree | 7fc0647a9b34b42c760c1a125c90fa221a6578bf /frontend/nginx.conf | |
| parent | eb943058e89d38278393bc9da8d9df551be05a30 (diff) | |
Dockerize app for deployment and development
Diffstat (limited to 'frontend/nginx.conf')
| -rw-r--r-- | frontend/nginx.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/nginx.conf b/frontend/nginx.conf new file mode 100644 index 0000000..6599254 --- /dev/null +++ b/frontend/nginx.conf @@ -0,0 +1,12 @@ +server { + listen 80; + location / { + root /app; + try_files $uri /index.html; + } + + location /api { + rewrite /api(.*) $1 break; + proxy_pass http://backend; + } +}
\ No newline at end of file |
