feat(admin): persist sessions and refresh via websocket

This commit is contained in:
nyan404 committed 2026-08-21 14:13:44 +03:00
1 parent 351ceeb990
commit 0c59d8cb15
5 files changed
+80 -9

No files matched your search

+8
View File
@@ -10,6 +10,11 @@ events {
}
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
@@ -85,10 +90,13 @@ http {
}
location ^~ /api/ {
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_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://10.12.0.212;
}