tiny fixes and cosmetic

This commit is contained in:
esefxdz committed 2026-07-28 20:34:02 +03:00
1 parent a659e3bb2e
commit 156d9f49b2
5 files changed
+278 -96

No files matched your search

+25
View File
@@ -14,6 +14,31 @@ server {
ssl_certificate /etc/letsencrypt/live/getrevolt.app/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/getrevolt.app/privkey.pem;
# ── Swarm monitor endpoints (lock behind basic auth) ────────────────
# Generate password file on server:
# apt install apache2-utils
# htpasswd -c /etc/nginx/.htpasswd admin
location /api/swarm {
auth_basic "Hivemind Monitor";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 30s;
}
location /api/log {
auth_basic "Hivemind Monitor";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 30s;
}
# ── API proxy to Hivemind (Flask) ────────────────────────────────────
location /api/ {
proxy_pass http://127.0.0.1:5000;