Add RustDesk service and nginx configuration

This commit is contained in:
matthew.binning 2026-02-13 08:01:23 -08:00
parent 651cc2be63
commit 0a9981870d
3 changed files with 49 additions and 8 deletions

View file

@ -117,11 +117,12 @@ in
};
# LM Studio with Bearer token authentication
# Proxies https://lmstudio.binning.net/v1 to http://localhost:1234/v1.
"lmstudio.binning.net" = {
forceSSL = true;
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
locations."/" = {
extraConfig = ''
@ -133,8 +134,9 @@ in
return 403 "Forbidden: Invalid API key\n";
}
# Proxy to LM Studio
proxy_pass http://localhost:1234;
# Proxy to LM Studio (running on port 1234)
# Note: The trailing slash is important - it preserves the /v1 path
proxy_pass http://localhost:1234/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@ -165,8 +167,8 @@ in
forceSSL = true;
#enableACME = true;
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
@ -179,8 +181,8 @@ in
forceSSL = true;
#enableACME = true;
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
locations."/" = {
proxyPass = "http://127.0.0.1:5232";
@ -204,6 +206,20 @@ in
proxyWebsockets = true;
};
};
# RustDesk
"rustdesk.binning.net" = {
forceSSL = true;
#enableACME = true;
sslCertificate = "/srv/nginx/binning.net.pem";
sslCertificateKey = "/srv/nginx/binning.net.key.pem";
locations."/" = {
proxyPass = "http://127.0.0.1:16484";
proxyWebsockets = true;
};
};
};
};