mirror of
https://github.com/dolphin-emu/sadm.git
synced 2026-01-31 01:05:23 +01:00
24 lines
540 B
Nix
24 lines
540 B
Nix
{
|
|
services.nginx = {
|
|
enable = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedProxySettings = true;
|
|
recommendedTlsSettings = true;
|
|
|
|
virtualHosts = {
|
|
"altair.dolphin-emu.org" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/".return = "302 https://github.com/dolphin-emu/sadm";
|
|
};
|
|
};
|
|
};
|
|
|
|
security.acme.acceptTerms = true;
|
|
security.acme.defaults.email = "root@dolphin-emu.org";
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
}
|