1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/nixos/modules/services/security
Franz Pletz 612781e816 simp_le service: letsencrypt cert auto-renewal
This new service invokes `simp_le` for a defined set of certs on a regular
basis with a systemd timer. `simp_le` is smart enough to handle account
registration, domain validation and renewal on its own. The only thing
required is an existing HTTP server that serves the path
`/.well-known/acme-challenge` from the webroot cert parameter.

Example:

  services.simp_le.certs."foo.example.com" = {
    webroot = "/var/www/challenges";
    extraDomains = [ "www.example.com" ];
    email = "foo@example.com";
    validMin = 2592000;
    renewInterval = "weekly";
  };

Example Nginx vhost:

  services.nginx.appendConfig = ''
    http {
      server {
        server_name _;
        listen 80;
        listen [::]:80;

        location /.well-known/acme-challenge {
          root /var/www/challenges;
        }

        location / {
          return 301 https://$host$request_uri;
        }
      }
    }
  '';
2015-12-12 16:06:51 +01:00
..
clamav.nix clamav: run freshclam in daemon mode 2014-09-01 09:41:19 +02:00
fail2ban.nix nixos/fail2ban: capitalize service description 2015-02-22 16:54:14 +01:00
fprintd.nix nixos/fprintd: add service and pam support 2015-01-03 19:50:40 +03:00
fprot.nix Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
frandom.nix Get all lib functions from lib, not pkgs.lib, in modules 2014-07-02 12:28:18 -04:00
haveged.nix nixos/haveged: Fix incorrect unit configuration (documentation -> Documentation) 2014-11-19 12:56:42 +01:00
hologram.nix goPackages: Split into multiple derivations 2015-08-29 12:58:03 -07:00
munge.nix munge: add service 2015-03-07 00:26:52 +03:00
physlock.nix nixos: add physlock service 2015-09-18 19:12:34 +00:00
simp_le.nix simp_le service: letsencrypt cert auto-renewal 2015-12-12 16:06:51 +01:00
tor.nix tor: restore the Privoxy setup, but configure the system Privoxy instead of running a separate instance. 2014-12-19 08:05:41 +02:00
torify.nix rename torify to tsocks, to avoid name clashes and make it clear which wrapper library is used 2014-12-19 08:05:41 +02:00
torsocks.nix resurrect torsocks-faster 2014-12-19 08:05:41 +02:00