aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/common/searx/default.nix11
-rw-r--r--modules/server/default.nix1
-rw-r--r--modules/server/forgejo/default.nix35
-rw-r--r--modules/server/monero/default.nix13
4 files changed, 42 insertions, 18 deletions
diff --git a/modules/common/searx/default.nix b/modules/common/searx/default.nix
index ec4680f..970eda9 100644
--- a/modules/common/searx/default.nix
+++ b/modules/common/searx/default.nix
@@ -7,7 +7,7 @@
settings = {
server = {
- port = 3040;
+ port = 4000;
bind_address = "127.0.0.1";
secret_key = "secret_key";
};
@@ -107,11 +107,12 @@
# Outgoing requests
outgoing = {
- request_timeout = 5.0;
- max_request_timeout = 15.0;
+ request_timeout = 15.0;
+ max_request_timeout = 25.0;
pool_connections = 100;
pool_maxsize = 15;
- enable_http2 = true;
+ useragent_suffix = "me@aethrvmn.gr";
+ retries = 5;
};
# Enabled plugins
@@ -130,7 +131,7 @@
nginx.virtualHosts = {
"search.internal" = {
locations."/" = {
- proxyPass = "http://127.0.0.1:3040";
+ proxyPass = "http://127.0.0.1:4000";
proxyWebsockets = true;
};
};
diff --git a/modules/server/default.nix b/modules/server/default.nix
index 6c9be09..150cd4d 100644
--- a/modules/server/default.nix
+++ b/modules/server/default.nix
@@ -7,6 +7,7 @@
./grafana
./immich
./jellyfin
+ ./monero
./ollama
];
diff --git a/modules/server/forgejo/default.nix b/modules/server/forgejo/default.nix
index 68ff8a4..0294279 100644
--- a/modules/server/forgejo/default.nix
+++ b/modules/server/forgejo/default.nix
@@ -1,11 +1,10 @@
-{ config, ... }:
{
services = {
forgejo = {
enable = true;
dump.enable = true;
- useWizard = true;
+ # useWizard = true;
settings = {
DEFAULT = {
@@ -16,16 +15,28 @@
};
server = {
- # HTTP_ADDR = "localhost";
- HTTP_PORT = 3090;
- DISABLE_SSH = false;
+ HTTP_PORT = 3040;
DOMAIN = "forge.internal";
- ROOT_URL = "http://forge.internal";
+ ROOT_URL = "http://forge.internal/";
+ SSH_DOMAIN = "forge.internal";
+ SSH_PORT = 22;
+ DISABLE_SSH = false;
+ };
+
+ database = {
+ DB_TYPE = "sqlite3";
};
service = {
- DISABLE_REGISTRATION = false;
+ DISABLE_REGISTRATION = false;
DEFAULT_KEEP_EMAIL_PRIVATE = true;
+ REQUIRE_SIGNIN_VIEW = false;
+ REGISTER_EMAIL_CONFIRM = false;
+ ENABLE_NOTIFY_MAIL = false;
+ ALLOW_ONLY_EXTERNAL_REGISTRATION = false;
+ ENABLE_CAPTCHA = false;
+ DEFAULT_ALLOW_CREATE_ORGANIZATION = true;
+ DEFAULT_ENABLE_TIMETRACKING = true;
};
lfs = {
@@ -35,12 +46,10 @@
};
nginx = {
- virtualHosts = {
- "forge.internal" = {
- locations."/" = {
- proxyPass = "http://127.0.0.1:3090";
- proxyWebsockets = true;
- };
+ virtualHosts."forge.internal" = {
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:3040";
+ proxyWebsockets = true;
};
};
};
diff --git a/modules/server/monero/default.nix b/modules/server/monero/default.nix
new file mode 100644
index 0000000..01ea285
--- /dev/null
+++ b/modules/server/monero/default.nix
@@ -0,0 +1,13 @@
+{
+ services.monero = {
+ enable = true;
+ dataDir = "/var/lib/monero";
+ prune = false;
+
+ rpc = {
+ enable = true;
+ address = "127.0.0.1";
+ port = 18081;
+ };
+ };
+}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.