added vocechat, disabled samba, etc

This commit is contained in:
Danilo Reyes 2024-01-13 17:22:56 -06:00
parent 3e9b015000
commit 79096d8214
4 changed files with 37 additions and 7 deletions

View File

@ -843,7 +843,7 @@ services = {
}; };
samba-wsdd.enable = true; samba-wsdd.enable = true;
samba = { samba = {
enable = true; enable = false;
securityType = "user"; securityType = "user";
openFirewall = true; openFirewall = true;
extraConfig = '' extraConfig = ''

View File

@ -41,6 +41,13 @@
# }; # };
# extraOptions = [ "--cap-add" "MKNOD" ]; # extraOptions = [ "--cap-add" "MKNOD" ];
# }; # };
vocechat = {
image = "privoce/vocechat-server:latest";
ports = [ "3001:3000" ];
volumes =
[ "/var/lib/docker-configs/vocechat:/home/vocechat-server/data" ];
environment = { TZ = "America/Mexico_City"; };
};
ryot = { ryot = {
image = "ghcr.io/ignisda/ryot:latest"; image = "ghcr.io/ignisda/ryot:latest";
ports = [ "8765:8000" ]; ports = [ "8765:8000" ];

View File

@ -81,7 +81,6 @@ in {
"maloja.${domain}" = proxy malojaPort // { }; "maloja.${domain}" = proxy malojaPort // { };
"qampqwn4wprhqny8h8zj.${domain}" = proxy secretFlamePort // { }; "qampqwn4wprhqny8h8zj.${domain}" = proxy secretFlamePort // { };
"xfwmrle6h6skqujbeizw.${domain}" = proxy qbitPort // { }; "xfwmrle6h6skqujbeizw.${domain}" = proxy qbitPort // { };
"dontcancelmeplz.${domain}" = proxy darkwirePort // { };
"audiobooks.${domain}" = base { "audiobooks.${domain}" = base {
"/" = { "/" = {
proxyPass = "http://${localhost}:${toString (audiobookPort)}"; proxyPass = "http://${localhost}:${toString (audiobookPort)}";
@ -98,6 +97,30 @@ in {
''; '';
}; };
}; };
"dontcancelmeplz.${domain}" = base {
"/" = {
proxyPass = "http://${localhost}:${toString (darkwirePort)}";
proxyWebsockets = true;
extraConfig = ''
# Ensuring it can use websockets
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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 http;
proxy_redirect http:// $scheme://;
# The proxy must preserve the host because gotify verifies the host with the origin
# for WebSocket connections
proxy_set_header Host $host;
# These sets the timeout so that the websocket can stay alive
proxy_connect_timeout 1m;
proxy_send_timeout 1m;
proxy_read_timeout 1m;
'';
};
};
# "flix.${domain}" = { # "flix.${domain}" = {
# forceSSL = true; # forceSSL = true;
# enableACME = true; # enableACME = true;

View File

@ -92,11 +92,11 @@ in {
MICROBIN_ENCRYPTION_SERVER_SIDE = true; MICROBIN_ENCRYPTION_SERVER_SIDE = true;
}; };
}; };
# audiobookshelf = { audiobookshelf = {
# enable = true; enable = true;
# group = "piracy"; group = "piracy";
# port = 5687; port = 5687;
# }; };
paperless = { paperless = {
enable = true; enable = true;
address = "0.0.0.0"; address = "0.0.0.0";