32 lines
884 B
Nginx Configuration File
32 lines
884 B
Nginx Configuration File
server {
|
|
listen 5173;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location /auth/ {
|
|
proxy_pass http://auth-api:3001/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://main-api:3000/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /tiles/ {
|
|
alias /var/www/tiles/;
|
|
add_header Accept-Ranges bytes;
|
|
add_header Access-Control-Allow-Origin *;
|
|
add_header Access-Control-Allow-Headers Range;
|
|
add_header Access-Control-Expose-Headers Content-Range,Content-Length;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|