add public server
This commit is contained in:
parent
7019a80883
commit
c340cf4ff3
1 changed files with 13 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
networking.extraHosts = "192.168.100.1 koendevLocal.nl git.koendevLocal.nl vault.koendevLocal.nl";
|
networking.extraHosts = "192.168.100.1 koendevLocal.nl public.koendevLocal.nl git.koendevLocal.nl vault.koendevLocal.nl";
|
||||||
|
|
||||||
containers.nginx = {
|
containers.nginx = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
@ -30,6 +30,10 @@ in {
|
||||||
hostPath = "/home/horseman/Programming/portfolio/_site";
|
hostPath = "/home/horseman/Programming/portfolio/_site";
|
||||||
isReadOnly = true;
|
isReadOnly = true;
|
||||||
};
|
};
|
||||||
|
"/var/www/public" = {
|
||||||
|
hostPath = "/home/horseman/Public";
|
||||||
|
isReadOnly = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -56,6 +60,14 @@ in {
|
||||||
sslCertificateKey = "/var/www/portfolio/key.pem";
|
sslCertificateKey = "/var/www/portfolio/key.pem";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"public.koendevLocal.nl" = {
|
||||||
|
root = "/var/www/public";
|
||||||
|
|
||||||
|
addSSL = true;
|
||||||
|
sslCertificate = "/var/www/portfolio/cert.pem";
|
||||||
|
sslCertificateKey = "/var/www/portfolio/key.pem";
|
||||||
|
};
|
||||||
|
|
||||||
"git.koendevLocal.nl" = {
|
"git.koendevLocal.nl" = {
|
||||||
# addSSL = false;
|
# addSSL = false;
|
||||||
# enableACME = false;
|
# enableACME = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue