diff options
author | EuAndreh <eu@euandre.org> | 2023-03-11 23:49:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-11 23:49:50 -0300 |
commit | 1c47f58efad0a9ccafa4f88f8d1354c7884a5a54 (patch) | |
tree | dffafe7919b83b0f9d6960a480e87affdcab8c38 | |
parent | system.scm: Fix all imports (diff) | |
download | toph-1c47f58efad0a9ccafa4f88f8d1354c7884a5a54.tar.gz toph-1c47f58efad0a9ccafa4f88f8d1354c7884a5a54.tar.xz |
system.scm: Add cache by default for nginx static assets
-rw-r--r-- | src/infrastructure/guix/system.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/infrastructure/guix/system.scm b/src/infrastructure/guix/system.scm index 43afdbc..b1a4f4d 100644 --- a/src/infrastructure/guix/system.scm +++ b/src/infrastructure/guix/system.scm @@ -296,7 +296,12 @@ '(#"- rewrite /r/velhinho(.*) $1 break; proxy_pass http://velhinho:4219; - "#)))))))))) + "#))))) + (raw-content + '(#"- + charset utf-8; + add_header Strict-Transport-Security 'max-age=86400; includeSubdomains' always; + "#))))))) (service cgit-service-type (cgit-configuration (nginx '()) |