fix nginx and add some containers
This commit is contained in:
parent
75c53b3be1
commit
b633e0d50f
@ -33,6 +33,8 @@ in {
|
|||||||
# nixosProfiles.neko-browser
|
# nixosProfiles.neko-browser
|
||||||
|
|
||||||
nixosProfiles.yandex-db
|
nixosProfiles.yandex-db
|
||||||
|
nixosProfiles.it-tools
|
||||||
|
nixosProfiles.homepage
|
||||||
];
|
];
|
||||||
|
|
||||||
deviceSpecific.devInfo = {
|
deviceSpecific.devInfo = {
|
||||||
|
18
profiles/servers/homepage.nix
Normal file
18
profiles/servers/homepage.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
nas-path = "/media/nas/containers";
|
||||||
|
in {
|
||||||
|
virtualisation.oci-containers.containers.homepage = {
|
||||||
|
autoStart = true;
|
||||||
|
image = "ghcr.io/benphelps/homepage:latest";
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "100";
|
||||||
|
};
|
||||||
|
extraOptions = [ "--pull=newer" ];
|
||||||
|
ports = [ "127.0.0.1:3000:3000/tcp" ];
|
||||||
|
volumes = [
|
||||||
|
"${nas-path}/homepage:/app/config"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
8
profiles/servers/it-tools.nix
Normal file
8
profiles/servers/it-tools.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ config, lib, pkgs, ... }: {
|
||||||
|
virtualisation.oci-containers.containers.it-tools = {
|
||||||
|
autoStart = true;
|
||||||
|
image = "docker.io/corentinth/it-tools:latest";
|
||||||
|
extraOptions = [ "--pull=newer" ];
|
||||||
|
ports = [ "127.0.0.1:8070:80/tcp" ];
|
||||||
|
};
|
||||||
|
}
|
@ -27,9 +27,6 @@ let
|
|||||||
"/outpost.goauthentik.io" = {
|
"/outpost.goauthentik.io" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_pass http://127.0.0.1:9000/outpost.goauthentik.io;
|
proxy_pass http://127.0.0.1:9000/outpost.goauthentik.io;
|
||||||
# proxy_pass http://auth.ataraxiadev.com:9000/outpost.goauthentik.io;
|
|
||||||
# proxy_pass https://auth.ataraxiadev.com/outpost.goauthentik.io;
|
|
||||||
# ensure the host of this vserver matches your external URL you've configured in authentik
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
||||||
add_header Set-Cookie $auth_cookie;
|
add_header Set-Cookie $auth_cookie;
|
||||||
@ -77,6 +74,7 @@ in {
|
|||||||
"lidarr.ataraxiadev.com"
|
"lidarr.ataraxiadev.com"
|
||||||
"cocalc.ataraxiadev.com"
|
"cocalc.ataraxiadev.com"
|
||||||
"kavita.ataraxiadev.com"
|
"kavita.ataraxiadev.com"
|
||||||
|
"tools.ataraxiadev.com"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -101,6 +99,7 @@ in {
|
|||||||
# add_header X-XSS-Protection "1; mode=block";
|
# add_header X-XSS-Protection "1; mode=block";
|
||||||
# add_header X-Robots-Tag "none";
|
# add_header X-Robots-Tag "none";
|
||||||
# add_header X-Content-Type-Options "nosniff";
|
# add_header X-Content-Type-Options "nosniff";
|
||||||
|
|
||||||
'';
|
'';
|
||||||
virtualHosts = let
|
virtualHosts = let
|
||||||
default = {
|
default = {
|
||||||
@ -121,20 +120,34 @@ in {
|
|||||||
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
# "ataraxiadev.com" = default // authentik {
|
||||||
|
# root = { proxyPass = "http://127.0.0.1:3000"; };
|
||||||
|
# rootExtraConfig = ''
|
||||||
|
# if ($http_origin ~* "^https?://\w*\.?ataraxiadev\.com$") {
|
||||||
|
# add_header Access-Control-Allow-Origin "$http_origin";
|
||||||
|
# }
|
||||||
|
# '' + proxySettings;
|
||||||
|
# };
|
||||||
"ataraxiadev.com" = {
|
"ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
root = "/srv/http/ataraxiadev.com/";
|
proxyPass = "http://127.0.0.1:3000";
|
||||||
extraConfig = ''
|
extraConfig = proxySettings;
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
# locations."/.well-known/matrix" = {
|
|
||||||
# proxyPass = "https://matrix.ataraxiadev.com/.well-known/matrix";
|
|
||||||
# extraConfig = ''
|
|
||||||
# proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
# '';
|
|
||||||
# };
|
|
||||||
} // default;
|
} // default;
|
||||||
|
# "ataraxiadev.com" = {
|
||||||
|
# locations."/" = {
|
||||||
|
# root = "/srv/http/ataraxiadev.com/";
|
||||||
|
# extraConfig = ''
|
||||||
|
# try_files $uri $uri/ =404;
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
# # locations."/.well-known/matrix" = {
|
||||||
|
# # proxyPass = "https://matrix.ataraxiadev.com/.well-known/matrix";
|
||||||
|
# # extraConfig = ''
|
||||||
|
# # proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
# # '';
|
||||||
|
# # };
|
||||||
|
# } // default;
|
||||||
# "matrix:443" = {
|
# "matrix:443" = {
|
||||||
# serverAliases = [
|
# serverAliases = [
|
||||||
# "matrix.ataraxiadev.com"
|
# "matrix.ataraxiadev.com"
|
||||||
@ -183,38 +196,38 @@ in {
|
|||||||
} // default;
|
} // default;
|
||||||
"vw.ataraxiadev.com" = {
|
"vw.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8812";
|
proxyPass = "http://127.0.0.1:8812";
|
||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
locations."/notifications/hub" = {
|
locations."/notifications/hub" = {
|
||||||
proxyPass = "http://localhost:3012";
|
proxyPass = "http://127.0.0.1:3012";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
locations."/notifications/hub/negotiate" = {
|
locations."/notifications/hub/negotiate" = {
|
||||||
proxyPass = "http://localhost:8812";
|
proxyPass = "http://127.0.0.1:8812";
|
||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
"code.ataraxiadev.com" = {
|
"code.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:6000";
|
proxyPass = "http://127.0.0.1:6000";
|
||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
# "bathist.ataraxiadev.com" = {
|
# "bathist.ataraxiadev.com" = {
|
||||||
# locations."/" = {
|
# locations."/" = {
|
||||||
# proxyPass = "http://localhost:9999";
|
# proxyPass = "http://127.0.0.1:9999";
|
||||||
# extraConfig = proxySettings;
|
# extraConfig = proxySettings;
|
||||||
# };
|
# };
|
||||||
# } // default;
|
# } // default;
|
||||||
"bathist.ataraxiadev.com" = default // authentik {
|
"bathist.ataraxiadev.com" = default // authentik {
|
||||||
root = { proxyPass = "http://localhost:9999"; };
|
root = { proxyPass = "http://127.0.0.1:9999"; };
|
||||||
rootExtraConfig = proxySettings;
|
rootExtraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
"browser.ataraxiadev.com" = {
|
"browser.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8090";
|
proxyPass = "http://127.0.0.1:8090";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_read_timeout 86400;
|
proxy_read_timeout 86400;
|
||||||
@ -222,7 +235,7 @@ in {
|
|||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
"fb.ataraxiadev.com" = default // authentik {
|
"fb.ataraxiadev.com" = default // authentik {
|
||||||
root = { proxyPass = "http://localhost:3923"; };
|
root = { proxyPass = "http://127.0.0.1:3923"; };
|
||||||
rootExtraConfig = ''
|
rootExtraConfig = ''
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
@ -234,10 +247,18 @@ in {
|
|||||||
};
|
};
|
||||||
"file.ataraxiadev.com" = {
|
"file.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8088";
|
proxyPass = "http://127.0.0.1:8088";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_read_timeout 3600s;
|
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
proxy_buffer_size 16k;
|
||||||
|
proxy_busy_buffers_size 16k;
|
||||||
|
proxy_connect_timeout 36000s;
|
||||||
|
proxy_max_temp_file_size 102400m;
|
||||||
|
proxy_read_timeout 36000s;
|
||||||
|
proxy_request_buffering off;
|
||||||
|
send_timeout 36000s;
|
||||||
|
proxy_send_timeout 36000s;
|
||||||
|
# proxy_buffering off;
|
||||||
'' + proxySettings;
|
'' + proxySettings;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@ -258,6 +279,9 @@ in {
|
|||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
|
"tools.ataraxiadev.com" = default // authentik {
|
||||||
|
root = { proxyPass = "http://127.0.0.1:8070"; };
|
||||||
|
};
|
||||||
"media-stack" = {
|
"media-stack" = {
|
||||||
serverAliases = [
|
serverAliases = [
|
||||||
"jellyfin.ataraxiadev.com"
|
"jellyfin.ataraxiadev.com"
|
||||||
@ -271,7 +295,7 @@ in {
|
|||||||
"kavita.ataraxiadev.com"
|
"kavita.ataraxiadev.com"
|
||||||
];
|
];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8180";
|
proxyPass = "http://127.0.0.1:8180";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# For Medusa
|
# For Medusa
|
||||||
@ -289,7 +313,7 @@ in {
|
|||||||
} // default;
|
} // default;
|
||||||
# "microbin.ataraxiadev.com" = {
|
# "microbin.ataraxiadev.com" = {
|
||||||
# locations."/" = {
|
# locations."/" = {
|
||||||
# proxyPass = "http://localhost:9988";
|
# proxyPass = "http://127.0.0.1:9988";
|
||||||
# extraConfig = ''
|
# extraConfig = ''
|
||||||
# client_max_body_size 40M;
|
# client_max_body_size 40M;
|
||||||
# '' + proxySettings;
|
# '' + proxySettings;
|
||||||
@ -297,19 +321,19 @@ in {
|
|||||||
# } // default;
|
# } // default;
|
||||||
"joplin.ataraxiadev.com" = {
|
"joplin.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:22300";
|
proxyPass = "http://127.0.0.1:22300";
|
||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
"fsync.ataraxiadev.com" = {
|
"fsync.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:5000";
|
proxyPass = "http://127.0.0.1:5000";
|
||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
"auth.ataraxiadev.com" = {
|
"auth.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:9000";
|
proxyPass = "http://127.0.0.1:9000";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = proxySettings;
|
extraConfig = proxySettings;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user