mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
remove unused
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.eleakxir-backend = {
|
||||
enable = true;
|
||||
port = 8080;
|
||||
leakPath = "/var/lib/eleakxir-backend/leaks";
|
||||
cachePath = "/var/lib/eleakxir-backend/cache";
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."eleakxir.hadi.diy" = {
|
||||
useACMEHost = "hadi.diy";
|
||||
forceSSL = true;
|
||||
|
||||
root = "${
|
||||
inputs.eleakxir.packages.${pkgs.system}.frontend
|
||||
}/eleakxir-frontend";
|
||||
|
||||
locations."/api/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.eleakxir-backend.port}/";
|
||||
extraConfig = ''
|
||||
# Crucial for SSE: Disable buffering
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection ""; # Required for HTTP/1.1 persistent connections
|
||||
proxy_read_timeout 36000s; # Long timeout, adjust as needed. SSE connections are long-lived.
|
||||
proxy_send_timeout 36000s; # Also important for sending data
|
||||
|
||||
# Your existing rewrite rule (make sure this doesn't cause issues with SSE paths specifically)
|
||||
rewrite ^/api/(.*) /$1 break;
|
||||
'';
|
||||
};
|
||||
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
try_files $uri $uri/ /index.html =404; # Fallback vers index.html pour les routes SPA
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
# Nextcloud is a self-hosted productivity platform that allows you to store and share files, manage calendars, contacts, and more.
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
domain = "cloud.hadi.diy";
|
||||
adminuser = "hadi";
|
||||
in {
|
||||
services = {
|
||||
nginx.virtualHosts = {
|
||||
"${domain}" = {
|
||||
# DNS-01 challenge
|
||||
useACMEHost = "hadi.diy";
|
||||
forceSSL = true;
|
||||
};
|
||||
};
|
||||
nextcloud = {
|
||||
enable = true;
|
||||
hostName = domain;
|
||||
package = pkgs.nextcloud31;
|
||||
database.createLocally = true;
|
||||
configureRedis = true;
|
||||
maxUploadSize = "16G";
|
||||
https = true;
|
||||
autoUpdateApps.enable = true;
|
||||
settings = {
|
||||
trusted_domains = [domain];
|
||||
default_phone_region = "FR";
|
||||
overwriteprotocol = "https";
|
||||
};
|
||||
extraAppsEnable = true;
|
||||
# extraApps = with config.services.nextcloud.package.packages.apps; {
|
||||
# List of apps we want to install and are already packaged in
|
||||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
|
||||
# inherit calendar contacts notes onlyoffice tasks cookbook qownnotesapi;
|
||||
# inherit cookbook;
|
||||
# Custom app example.
|
||||
# socialsharing_telegram = pkgs.fetchNextcloudApp rec {
|
||||
# url =
|
||||
# "https://github.com/nextcloud-releases/socialsharing/releases/download/v3.0.1/socialsharing_telegram-v3.0.1.tar.gz";
|
||||
# license = "agpl3";
|
||||
# sha256 = "sha256-8XyOslMmzxmX2QsVzYzIJKNw6rVWJ7uDhU1jaKJ0Q8k=";
|
||||
# };
|
||||
# };
|
||||
config = {
|
||||
dbtype = "pgsql";
|
||||
adminuser = adminuser;
|
||||
adminpassFile = config.sops.secrets.nextcloud-pwd.path;
|
||||
};
|
||||
# Suggested by Nextcloud's health check.
|
||||
phpOptions."opcache.interned_strings_buffer" = "16";
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets.nextcloud-pwd.path = "/etc/nextcloud/pwd.txt";
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
# Custom NixOS module for the Search NixOS API service
|
||||
# Check https://search-nixos.hadi.diy
|
||||
{config, ...}: let
|
||||
domain = "search-nixos-api.hadi.diy";
|
||||
in {
|
||||
services = {
|
||||
search-nixos-api = {enable = true;};
|
||||
|
||||
nginx.virtualHosts."${domain}" = {
|
||||
useACMEHost = "hadi.diy";
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.search-nixos-api.port}/";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user