2024-12-06 13:20:31 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-12-06 09:38:15 +01:00
|
|
|
{
|
|
|
|
users.users.nginx.extraGroups = [ "acme" ];
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
clientMaxBodySize = "1000M";
|
|
|
|
appendHttpConfig = ''
|
|
|
|
log_format vcombined '$host:$server_port '
|
|
|
|
'$remote_addr - $remote_user [$time_local] '
|
|
|
|
'"$request" $status $body_bytes_sent '
|
|
|
|
'"$http_referer" "$http_user_agent"';
|
|
|
|
access_log /var/log/nginx/access.log vcombined;
|
|
|
|
'';
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"internal.hoyer.world" = {
|
|
|
|
enableACME = false;
|
|
|
|
useACMEHost = "internal.hoyer.world";
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
2024-12-06 09:45:52 +01:00
|
|
|
proxyPass = "http://127.0.0.1:${toString config.services.open-webui.port}";
|
2024-12-06 09:38:15 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|