biommap/nginx/default.conf

41 lines
877 B
Plaintext
Raw Normal View History

2021-07-01 12:47:23 +00:00
server {
listen 80;
listen [::]:80;
server_name localhost;
2021-07-05 09:40:13 +00:00
client_max_body_size 12M;
2021-07-01 12:47:23 +00:00
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
proxy_pass http://citizen-front:4000/;
}
location /api/ {
proxy_pass http://citizen-back:5002/api/;
}
location /api/media/ {
proxy_pass http://citizen-back:5002/api/media/;
proxy_intercept_errors on;
error_page 404 = @media1;
}
location /api/media1/ {
proxy_pass http://media/;
}
location @media1 {
rewrite ^/api/media/(.*)$ /api/media1/$1;
}
2021-07-05 09:40:13 +00:00
2021-07-01 12:47:23 +00:00
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}