Attempt to serve {learn,blog}.wpcarro.dev
Reading an Nginx tutorial and trying to port the information over to NixOS.
This commit is contained in:
parent
431b4980e4
commit
5ba3f2b572
1 changed files with 12 additions and 10 deletions
|
@ -115,7 +115,7 @@ in {
|
||||||
|
|
||||||
# Provision SSL certificates to support HTTPS connections.
|
# Provision SSL certificates to support HTTPS connections.
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
security.acme.certs."wpcarro.dev".email = "wpcarro@gmail.com";
|
security.acme.email = "wpcarro@gmail.com";
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -141,15 +141,17 @@ in {
|
||||||
access_log syslog:server=unix:/dev/log json_combined;
|
access_log syslog:server=unix:/dev/log json_combined;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
virtualHosts.blog = {
|
virtualHosts = {
|
||||||
serverName = "blog.wpcarro.dev";
|
"learn.wpcarro.dev" = {
|
||||||
useACMEHost = "wpcarro.dev";
|
addSSL = true;
|
||||||
addSSL = true;
|
enableACME = true;
|
||||||
extraConfig = ''
|
root = "/var/www/learn";
|
||||||
location / {
|
};
|
||||||
proxy_pass http://localhost:80
|
"blog.wpcarro.dev" = {
|
||||||
}
|
addSSL = true;
|
||||||
'';
|
enableACME = true;
|
||||||
|
root = "/var/www/blog";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue