summaryrefslogtreecommitdiffstats
path: root/content/blog/01-hello-world/index.org
diff options
context:
space:
mode:
Diffstat (limited to 'content/blog/01-hello-world/index.org')
-rw-r--r--content/blog/01-hello-world/index.org12
1 files changed, 3 insertions, 9 deletions
diff --git a/content/blog/01-hello-world/index.org b/content/blog/01-hello-world/index.org
index aa51773..02676c5 100644
--- a/content/blog/01-hello-world/index.org
+++ b/content/blog/01-hello-world/index.org
@@ -168,19 +168,13 @@ inputs.website = {
and use the =nginx.virtualHosts= option to deploy it:
#+begin_src nix
-nginx.virtualHosts = {
+services.nginx.virtualHosts = {
"adbjesus.com" = {
default = true;
forceSSL = true;
enableACME = true;
- locations = {
- "/" = {
- root = "${inputs.website.packages.${system}.website}/public";
- extraConfig = ''
- add_header Last-Modified "${toDateTime inputs.website.lastModified}";
- add_header Cache-Control max-age="${toString (60 * 60 * 24)}";
- '';
- };
+ locations."/" = {
+ root = "${website.packages.x86_64-linux.website}/public";
};
};
};