ao: add nginx config

This commit is contained in:
Henrik Lissner 2019-11-18 01:26:14 -05:00
parent fc28078616
commit 1596653ffc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -16,6 +16,38 @@
networking.hostName = "ao";
networking.networkmanager.enable = true;
# syncthing
services.syncthing.guiAddress = "192.168.1.10:8384";
networking.firewall.allowedTCPPorts = [ 8384 ];
# nginx hosts
services.nginx.virtualHosts = {
"v0.io" = {
default = true;
enableACME = true;
forceSSL = true;
root = "/home/hlissner/www/v0.io";
};
"dl.v0.io" = {
enableACME = true;
addSSL = true;
root = "/home/hlissner/www/dl.v0.io";
locations."~* \.(?:ico|css|js|gif|jpe?g|png|mp4)$".extraConfig = ''
expires 30d;
add_header Pragma public;
add_header Cache-Control public;
'';
};
# "git.v0.io" = {
# enableACME = true;
# forceSSL = true;
# locations."/".proxyPass = http://gitea;
# };
};
services.acme.certs = {
"v0.io".email = "henrik@lissner.net";
"dl.v0.io".email = "henrik@lissner.net";
# "git.v0.io".email = "henrik@lissner.net";
};
}