Created
December 14, 2018 15:14
-
-
Save alyssais/e756e730426a8b74664877c459ddaf45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
security.acme.certs."qyliss.net" = { | |
email = "[email protected]"; | |
postRun = "systemctl reload nginx.service"; | |
webroot = "/var/lib/acme/acme-challenge"; | |
}; | |
services.nginx.enable = true; | |
services.nginx.config = '' | |
events {} | |
stream { | |
server { | |
listen 6697 ssl; | |
ssl_certificate /var/lib/acme/qyliss.net/fullchain.pem; | |
ssl_certificate_key /var/lib/acme/qyliss.net/key.pem; | |
proxy_pass 127.0.0.1:6667; | |
} | |
} | |
''; | |
services.znc.enable = true; | |
services.znc.useLegacyConfig = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment