File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed
Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 77
88 downloads . enable = true ;
99
10- tobias-happ . enable = true ;
10+ # tobias-happ.enable = true;
1111 } ;
1212
1313 base . server = {
Original file line number Diff line number Diff line change 88
99 cfg = config . custom . applications . tobias-happ ;
1010
11- # website = pkgs.runCommand "tobias-happ.de" { } ''
12- # install -D -m 0400 ${./index.html} ${placeholder " out"} /index.html
13- # install -D -m 0400 ${./robots.txt} ${placeholder " out"} /robots.txt
14- # '';
11+ website = pkgs . runCommand "tobias-happ.de" { } ''
12+ install -D -m 0400 ${ ./index.html } $out/index.html
13+ install -D -m 0400 ${ ./robots.txt } $out/robots.txt
14+ '' ;
1515in
1616
1717{
3333
3434 services . nginx . virtualHosts = {
3535 "tobias-happ.de" = {
36- default = true ;
37- root = "/var/empty" ;
36+ root = website ;
3837 enableACME = true ;
3938 forceSSL = true ;
40- # extraConfig = "error_page 404 @notfound;";
41- # locations = {
42- # "/".index = "index.html";
43- # "@notfound".extraConfig = "return 302 /;";
44- # };
39+ extraConfig = "error_page 404 @notfound;" ;
40+ locations = {
41+ "/" . index = "index.html" ;
42+ "@notfound" . extraConfig = "return 302 /;" ;
43+ } ;
4544 } ;
4645
4746 "*.tobias-happ.de" . extraConfig = "return 302 https://tobias-happ.de/;" ;
Original file line number Diff line number Diff line change 4141 recommendedTlsSettings = true ;
4242 recommendedGzipSettings = true ;
4343 recommendedProxySettings = true ;
44+
45+ virtualHosts . _ = {
46+ default = true ;
47+ root = "/var/empty" ;
48+ } ;
49+
4450 } ;
4551
4652 } ;
You can’t perform that action at this time.
0 commit comments