Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
9912ef1833 |
|||
|
c1b324beec |
4 changed files with 32 additions and 6 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -40,11 +40,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1794756927,
|
"lastModified": 1794819152,
|
||||||
"narHash": "sha256-IfuPcOpwC+bYvBdtUhA9hHhY7xV7k9T5LeOTZFiJB4o=",
|
"narHash": "sha256-a7ymvqbsg5NlcTrtJLF26UqbfLFNiHpxnaE9em5NzT8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b349185bb79c7cf7ad8ea8c097931730bf473c71",
|
"rev": "c089fab3b46743911df4c60199f6d0b20c4fb834",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
./modules/overlays/urllib3-future.nix
|
||||||
./hosts/www
|
./hosts/www
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,9 @@ in
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] "mta-sts.${config.networking.domain}"} warn;
|
error_log syslog:server=unix:/dev/log,tag=${
|
||||||
|
builtins.replaceStrings [ "." ] [ "_" ] "mta-sts.${config.networking.domain}"
|
||||||
|
} warn;
|
||||||
access_log syslog:server=unix:/dev/log vhost_combined;
|
access_log syslog:server=unix:/dev/log vhost_combined;
|
||||||
'';
|
'';
|
||||||
locations."= /.well-known/mta-sts.txt" = {
|
locations."= /.well-known/mta-sts.txt" = {
|
||||||
|
|
@ -43,7 +45,9 @@ in
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
# HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
|
||||||
add_header Strict-Transport-Security max-age=15768000;
|
add_header Strict-Transport-Security max-age=15768000;
|
||||||
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] "www.${config.networking.domain}"} warn;
|
error_log syslog:server=unix:/dev/log,tag=${
|
||||||
|
builtins.replaceStrings [ "." ] [ "_" ] "www.${config.networking.domain}"
|
||||||
|
} warn;
|
||||||
access_log syslog:server=unix:/dev/log vhost_combined;
|
access_log syslog:server=unix:/dev/log vhost_combined;
|
||||||
'';
|
'';
|
||||||
locations = {
|
locations = {
|
||||||
|
|
@ -109,7 +113,9 @@ in
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
error_log syslog:server=unix:/dev/log,tag=${builtins.replaceStrings [ "." ] [ "_" ] "staging.${config.networking.domain}"} warn;
|
error_log syslog:server=unix:/dev/log,tag=${
|
||||||
|
builtins.replaceStrings [ "." ] [ "_" ] "staging.${config.networking.domain}"
|
||||||
|
} warn;
|
||||||
access_log syslog:server=unix:/dev/log vhost_combined;
|
access_log syslog:server=unix:/dev/log vhost_combined;
|
||||||
'';
|
'';
|
||||||
locations = {
|
locations = {
|
||||||
|
|
|
||||||
19
overlays/urllib3-future.nix
Normal file
19
overlays/urllib3-future.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
||||||
|
(python-final: python-prev: {
|
||||||
|
urllib3-future = python-prev.urllib3-future.overridePythonAttrs (oldAttrs: {
|
||||||
|
disabledTestPaths = (oldAttrs.disabledTestPaths or [ ]) ++ [
|
||||||
|
"test/test_async_response.py::TestAsyncResponse::test_chunked_decoding_gzip_swallow_garbage"
|
||||||
|
"test/test_response.py::TestResponse::test_chunked_decoding_gzip_swallow_garbage"
|
||||||
|
"test/test_ssltransport.py::SingleTLSLayerTestCase::test_start_closed_socket"
|
||||||
|
];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue