refine configuration of refinery

This commit is contained in:
Joeri Exelmans 2025-10-02 11:32:56 +02:00
parent 489bb683e0
commit 16e45351cc

View file

@ -256,12 +256,14 @@ let secrets = import ../secrets.nix; in
''; '';
proxyWebsockets = true; proxyWebsockets = true;
}; };
locations."/public" = { locations."/public" = {
basicAuth = {}; basicAuth = {};
extraConfig = '' extraConfig = ''
autoindex off; autoindex off;
''; '';
}; };
locations."/plantuml" = { locations."/plantuml" = {
basicAuth = {}; basicAuth = {};
extraConfig = '' extraConfig = ''
@ -270,6 +272,7 @@ let secrets = import ../secrets.nix; in
proxyPass = "http://127.0.0.1:8080/plantuml"; proxyPass = "http://127.0.0.1:8080/plantuml";
proxyWebsockets = true; proxyWebsockets = true;
}; };
locations."/transmission/web/" = { locations."/transmission/web/" = {
basicAuth = userlist; basicAuth = userlist;
proxyPass = "http://127.0.0.1:9091/transmission/web/"; proxyPass = "http://127.0.0.1:9091/transmission/web/";
@ -280,6 +283,7 @@ let secrets = import ../secrets.nix; in
proxyPass = "http://127.0.0.1:9091/transmission/rpc"; proxyPass = "http://127.0.0.1:9091/transmission/rpc";
proxyWebsockets = true; proxyWebsockets = true;
}; };
#locations."/jellyfin/" = { #locations."/jellyfin/" = {
##basicAuth = userlist; ##basicAuth = userlist;
#proxyPass = "http://127.0.0.1:8096/jellyfin/"; #proxyPass = "http://127.0.0.1:8096/jellyfin/";
@ -295,30 +299,28 @@ let secrets = import ../secrets.nix; in
proxy_buffering off; proxy_buffering off;
''; '';
}; };
locations."/refinery/" = { locations."/refinery/" = {
proxyPass = "http://127.0.0.1:8888/"; proxyPass = "http://127.0.0.1:8888/";
proxyWebsockets = true; proxyWebsockets = true;
};
locations."/refinery/api/" = {
proxyPass = "http://127.0.0.1:8888/api/";
extraConfig = '' extraConfig = ''
#rewrite /refinery/(.*) /$1 break; chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
''; '';
}; };
locations."/xtext-service" = {
proxyPass = "http://127.0.0.1:8888/xtext-service";
proxyWebsockets = true;
};
locations."/api/v1/" = {
proxyPass = "http://127.0.0.1:8888/api/v1/";
proxyWebsockets = true;
};
locations."/git/" = { locations."/git/" = {
basicAuth = {}; basicAuth = {};
proxyPass = "http://127.0.0.1:27365/"; proxyPass = "http://127.0.0.1:27365/";
proxyWebsockets = true; proxyWebsockets = true;
}; };
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
extraConfig = '' extraConfig = ''
charset UTF-8; charset UTF-8;
disable_symlinks off; disable_symlinks off;
@ -395,11 +397,13 @@ let secrets = import ../secrets.nix; in
}; };
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
refinery = { refinery = {
image = "ghcr.io/graphs4value/refinery:latest"; image = "ghcr.io/graphs4value/refinery:0.2.1-snapshot";
ports = [ "127.0.0.1:8888:8888" ]; ports = [ "127.0.0.1:8888:8888" ];
environment = { environment = {
REFINERY_PUBLIC_HOST = "deemz.org"; REFINERY_PUBLIC_HOST = "deemz.org";
#REFINERY_PUBLIC_PORT = ""; REFINERY_WEBSOCKET_URL = "wss://deemz.org/refinery/xtext-service";
REFINERY_API_BASE = "https://deemz.org/refinery/api/v1/";
# Timeouts
REFINERY_MODEL_GENERATION_TIMEOUT_SEC = "60"; REFINERY_MODEL_GENERATION_TIMEOUT_SEC = "60";
REFINERY_MODEL_GENERATION_THREAD_COUNT = "10"; REFINERY_MODEL_GENERATION_THREAD_COUNT = "10";
}; };