aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-11 23:49:50 -0300
committerEuAndreh <eu@euandre.org>2023-03-11 23:49:50 -0300
commit1c47f58efad0a9ccafa4f88f8d1354c7884a5a54 (patch)
treedffafe7919b83b0f9d6960a480e87affdcab8c38
parentsystem.scm: Fix all imports (diff)
downloadtoph-1c47f58efad0a9ccafa4f88f8d1354c7884a5a54.tar.gz
toph-1c47f58efad0a9ccafa4f88f8d1354c7884a5a54.tar.xz
system.scm: Add cache by default for nginx static assets
-rw-r--r--src/infrastructure/guix/system.scm7
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 '())