nix/nixos/hosts/nixos-rpi4-03/temp.nix

17 lines
447 B
Nix
Raw Normal View History

2023-10-07 14:50:22 +02:00
{pkgs, lib, config, ...}: {
2023-10-07 15:18:18 +02:00
networking.firewall.allowedTCPPorts = [ 80 443 ];
2023-10-07 14:50:22 +02:00
services.nginx = {
enable = true;
2023-10-08 03:13:09 +02:00
httpConfig = ''
index index.html;
server {
listen 80 default_server;
server_name _;
access_log logs/test.access.log main;
server_name_in_redirect off;
2023-10-08 03:44:41 +02:00
root /var/www/test;
2023-10-08 03:13:09 +02:00
}
'';
2023-10-07 14:50:22 +02:00
};
2023-10-07 14:52:10 +02:00
}