diff options
Diffstat (limited to 'front/nginx.conf')
-rw-r--r-- | front/nginx.conf | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/front/nginx.conf b/front/nginx.conf new file mode 100644 index 0000000..c87e262 --- /dev/null +++ b/front/nginx.conf @@ -0,0 +1,18 @@ +upstream server { + server server:8080; +} + +server { + listen 80; + + location / { + root /usr/share/nginx/html/; + index index.html index.htm index.nginx-debian.html; + try_files $uri $uri/ /index.html; + } + + location /api/ { + proxy_set_header Host $host; + proxy_pass http://server/; + } +} |