feat(v2): complete v2 reimplementation

This commit is contained in:
2026-07-31 13:33:39 +02:00
parent 396219e776
commit bd107d6a30
137 changed files with 20737 additions and 155 deletions
+45 -14
View File
@@ -1,19 +1,50 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
pid /tmp/nginx.pid;
location / {
try_files $uri $uri/ /index.html;
worker_processes auto;
error_log /dev/stderr warn;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /dev/stdout;
sendfile on;
upstream backup_tool_web {
server unix:/run/backup-tool/web.sock;
}
location /api/ {
proxy_pass http://backend:8000/api/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://backup_tool_web;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location = /livez {
proxy_pass http://backup_tool_web;
}
location = /readyz {
proxy_pass http://backup_tool_web;
}
location = /metrics {
proxy_pass http://backup_tool_web;
}
}
}