mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-07-03 03:40:38 +02:00
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
18 lines
323 B
Nix
18 lines
323 B
Nix
{ config, ... }: {
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"${config.dump-dvb.domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
extraConfig = ''
|
|
return 307 https://docs.dvb.solutions;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|