diff options
author | makefu <github@syntax-fehler.de> | 2015-10-29 09:28:27 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-10-29 09:28:27 +0100 |
commit | 8bc538b9e7bdf6fa9d93d1662ee1b889e0a5d458 (patch) | |
tree | 099aa9b57ec59549783e5c4cabd8eff5dbddce67 /makefu/2configs/nginx/euer.blog.nix | |
parent | 7fe4f6dc1726005f87026e7c492eb55f7763a777 (diff) |
m 2 euer.blog: init (untested)
Diffstat (limited to 'makefu/2configs/nginx/euer.blog.nix')
-rw-r--r-- | makefu/2configs/nginx/euer.blog.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/makefu/2configs/nginx/euer.blog.nix b/makefu/2configs/nginx/euer.blog.nix new file mode 100644 index 000000000..a8be1993b --- /dev/null +++ b/makefu/2configs/nginx/euer.blog.nix @@ -0,0 +1,29 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + ssl_cert = "/root/secrets/wildcard.krebsco.de.crt"; + ssl_key = "/root/secrets/wildcard.krebsco.de.key"; + hostname = krebs.build.host.name; +in { + krebs.nginx = { + enable = mkDefault true; + servers = { + euer-blog = { + listen = [ "80" "443 ssl" ]; + server-names = [ "euer.krebsco.de" "euer.blog.krebsco.de" "blog.${hostname}" ]; + extraConfig = '' + gzip on; + gzip_buffers 4 32k; + gzip_types text/plain application/x-javascript text/css; + ssl_certificate ${ssl_cert}; + ssl_certificate_key ${ssl_key}; + default_type text/plain; + ''; + locations = singleton (nameValuePair "/" '' + root /var/www/euer.blog/; + ''); + }; + }; + }; +} |