You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
594 B
26 lines
594 B
server {
|
|
|
|
server_name localhost ;
|
|
listen 80 ;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html ;
|
|
try_files $uri $uri/ /index.html ;
|
|
}
|
|
|
|
# nb: we access the backend server via the network bridge that docker-compose creates for us
|
|
location /api {
|
|
proxy_pass http://flask:5000 ;
|
|
rewrite ^/api/(.*) /$1 break ;
|
|
}
|
|
location /user {
|
|
proxy_pass http://flask:5000 ;
|
|
rewrite ^/user/(.*) /user-files/$1 break ;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html ;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html ;
|
|
}
|
|
|
|
}
|
|
|