first commit

This commit is contained in:
2026-03-14 20:49:11 -04:00
commit 08768723bc
31 changed files with 8984 additions and 0 deletions

31
nginx.conf Normal file
View File

@@ -0,0 +1,31 @@
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;
}
}