Files
backup-tool/frontend/nginx.conf
T

51 lines
1.1 KiB
Nginx Configuration File

pid /tmp/nginx.pid;
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;
}
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;
}
}
}