2023-09-24 03:59:47 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-12-06 22:21:44 +01:00
|
|
|
{
|
2023-12-27 22:56:53 +01:00
|
|
|
#declare secrets
|
|
|
|
sops.secrets."nginx/defaultpass" = {
|
|
|
|
restartUnits = [ "nginx.service" ];
|
|
|
|
owner = "nginx";
|
|
|
|
};
|
2023-09-24 03:59:47 +02:00
|
|
|
# services.oauth2_proxy = {
|
|
|
|
# enable = true;
|
|
|
|
# }
|
2024-04-19 14:22:06 +02:00
|
|
|
#proxy stuff
|
2023-09-24 03:59:47 +02:00
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
statusPage = true;
|
|
|
|
enableReload = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
|
2023-12-10 21:14:55 +01:00
|
|
|
logError = "syslog:server=unix:/dev/log";
|
|
|
|
commonHttpConfig = ''
|
|
|
|
access_log syslog:server=unix:/dev/log;
|
|
|
|
'';
|
2023-09-24 03:59:47 +02:00
|
|
|
};
|
|
|
|
}
|