mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
32 lines
654 B
Nix
32 lines
654 B
Nix
{ lib, config, ... }:
|
|
{
|
|
config = lib.mkIf config.swarselsystems.server.emacs {
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9812 ];
|
|
|
|
services.emacs = {
|
|
enable = true;
|
|
install = true;
|
|
startWithGraphical = false;
|
|
};
|
|
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
"signpost.swarsel.win" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
acmeRoot = null;
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://localhost:9812";
|
|
extraConfig = ''
|
|
client_max_body_size 0;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|