update to 3.0.1
This commit is contained in:
parent
0e07f409c1
commit
c03c2e9885
2 changed files with 286 additions and 290 deletions
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1697851979,
|
"lastModified": 1700851152,
|
||||||
"narHash": "sha256-lJ8k4qkkwdvi+t/Xc6Fn74kUuobpu9ynPGxNZR6OwoA=",
|
"narHash": "sha256-3PWITNJZyA3jz5IGREJRfSykM6xSLmD8u5A3WpBCyDM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5550a85a087c04ddcace7f892b0bdc9d8bb080c8",
|
"rev": "1216a5ba22a93a4a3a3bfdb4bff0f4727c576fcc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
26
flake.nix
26
flake.nix
|
@ -7,8 +7,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs }@inputs:
|
outputs = {
|
||||||
let
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
} @ inputs: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -16,8 +18,7 @@
|
||||||
py = pkgs.python3.override {
|
py = pkgs.python3.override {
|
||||||
packageOverrides = final: prev: {
|
packageOverrides = final: prev: {
|
||||||
django = prev.django_4;
|
django = prev.django_4;
|
||||||
cronsim =
|
cronsim = let
|
||||||
let
|
|
||||||
version = "2.5";
|
version = "2.5";
|
||||||
pname = "cronsim";
|
pname = "cronsim";
|
||||||
src = pkgs.fetchPypi {
|
src = pkgs.fetchPypi {
|
||||||
|
@ -56,14 +57,12 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
packages.${system} = {
|
packages.${system} = {
|
||||||
healthchecks =
|
healthchecks = let
|
||||||
let
|
|
||||||
pname = "healthchecks";
|
pname = "healthchecks";
|
||||||
version = "3.0";
|
version = "3.0.1";
|
||||||
hash = "sha256-1xEWsNl1Gs+Xb5+KIZhnVrK4yT4CcVPfHEBP5EYQAD0=";
|
hash = "sha256-r8wzIZPetnTEJDKPx/Oxk+gzs8gbjEHSi40LSxLb1Js=";
|
||||||
localSettings = pkgs.writeText "local_settings.py" ''
|
localSettings = pkgs.writeText "local_settings.py" ''
|
||||||
import os
|
import os
|
||||||
CSRF_TRUSTED_HOSTS = os.getenv("CSRF_TRUSTED_HOSTS", "").split(",")
|
CSRF_TRUSTED_HOSTS = os.getenv("CSRF_TRUSTED_HOSTS", "").split(",")
|
||||||
|
@ -187,8 +186,7 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
maintenance =
|
maintenance = let
|
||||||
let
|
|
||||||
script = pkgs.writeShellScript "maintenance" ''
|
script = pkgs.writeShellScript "maintenance" ''
|
||||||
CURL_OPTIONS="--fail --silent --show-error --max-time 10 --retry 5 --output /dev/null"
|
CURL_OPTIONS="--fail --silent --show-error --max-time 10 --retry 5 --output /dev/null"
|
||||||
${pkgs.curl}/bin/curl $CURL_OPTIONS http://webserver.healthchecks.svc/ping/$MAINTENANCE_CHECK_UUID/start
|
${pkgs.curl}/bin/curl $CURL_OPTIONS http://webserver.healthchecks.svc/ping/$MAINTENANCE_CHECK_UUID/start
|
||||||
|
@ -224,8 +222,7 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
webserver =
|
webserver = let
|
||||||
let
|
|
||||||
uwsgi = pkgs.uwsgi.override {
|
uwsgi = pkgs.uwsgi.override {
|
||||||
plugins = ["python3"];
|
plugins = ["python3"];
|
||||||
};
|
};
|
||||||
|
@ -287,7 +284,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
checks.${system} = {
|
checks.${system} = {
|
||||||
webserver = self.packages.${system}.webserver;
|
webserver = self.packages.${system}.webserver;
|
||||||
|
|
Loading…
Reference in a new issue